Skip to content

Commit

Permalink
Push image
Browse files Browse the repository at this point in the history
  • Loading branch information
doganulus committed Jul 22, 2024
1 parent a521202 commit 60ff68c
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/builder-buildah-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ jobs:
id: build-image
uses: redhat-actions/buildah-build@v2
with:
platform: linux/amd64
platforms: linux/amd64
image: ${{ env.IMAGE_NAME }}
tags: ${{ env.AUTOWARE_VERSION }}-builder latest
layers: true
oci: true
build-args: |
AUTOWARE_VERSION=${{ env.AUTOWARE_VERSION }}
Expand All @@ -70,10 +69,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# - name: Push to GitHub Container Repository
# id: push-to-ghcr
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.build-image.outputs.image }}
# tags: ${{ steps.build-image.outputs.tags }}
# registry: ${{ env.REGISTRY }}
- name: Push to GitHub Container Repository
id: push-builder-ghcr
uses: redhat-actions/push-to-registry@v2
with:
registry: ${{ env.REGISTRY }}
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}

- name: Print image url
run: echo "Image pushed to ${{ steps.push-builder-ghcr.outputs.registry-paths }}"

0 comments on commit 60ff68c

Please sign in to comment.