Skip to content

Commit

Permalink
fix release image build and push (#13)
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Bueno <49003339+tlbueno@users.noreply.github.com>
  • Loading branch information
tlbueno authored Oct 31, 2024
1 parent b806ac8 commit 76e477f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,20 @@ jobs:
id: build-image
uses: redhat-actions/buildah-build@v2
with:
image: "ghcr.io/${{ github.repository_owner }}/toolbox"
tags: ${{ env.VERSION }} latest
image: toolbox
tags: ${{ env.VERSION }} ${{ github.sha }} latest
containerfiles: |
./Containerfile
layers: false
oci: true
- name: Push image to GitHub Container Registry
id: push
uses: redhat-actions/push-to-registry@v2
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: "ghcr.io"
registry: "ghcr.io/${{ github.repository_owner }}"
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}

- name: Echo outputs
run: |
echo "${{ toJSON(steps.push.outputs) }}"

0 comments on commit 76e477f

Please sign in to comment.