Skip to content

Commit

Permalink
ci: Test something - kaniko suppose to fetch the repo and build
Browse files Browse the repository at this point in the history
Signed-off-by: Eden Reich <[email protected]>
  • Loading branch information
edenreich committed Feb 19, 2025
1 parent 74ad5f8 commit 7e65385
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,22 +237,22 @@ jobs:
options: --entrypoint=""
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
persist-credentials: false

- name: Update Cargo.toml version
run: |
echo "Updating to version ${{ needs.github_release.outputs.new_release_version }}"
sed -i "s/^version = .*/version = \"${{ needs.github_release.outputs.new_release_version }}\"/" Cargo.toml
- name: Fetch metadata for container build
uses: docker/metadata-action@v5
id: metadata
with:
images: ghcr.io/${{ github.repository }}
# - name: Checkout repository
# uses: actions/checkout@v4
# with:
# ref: ${{ github.ref }}
# persist-credentials: false

# - name: Update Cargo.toml version
# run: |
# echo "Updating to version ${{ needs.github_release.outputs.new_release_version }}"
# sed -i "s/^version = .*/version = \"${{ needs.github_release.outputs.new_release_version }}\"/" Cargo.toml

# - name: Fetch metadata for container build
# uses: docker/metadata-action@v5
# id: metadata
# with:
# images: ghcr.io/${{ github.repository }}

- name: Authenticate with GHCR
run: |
Expand All @@ -270,7 +270,7 @@ jobs:
- name: Build and push
run: |
/kaniko/executor \
--context="${{ github.workspace }}" \
--context="${{ github.repositoryUrl }}#${{ github.ref }}#${{ github.sha }}" \
--dockerfile="${{ github.workspace }}/Dockerfile" \
--target=minimal \
--destination=ghcr.io/${{ github.repository_owner }}/coder:latest \
Expand Down

0 comments on commit 7e65385

Please sign in to comment.