Skip to content

Commit

Permalink
fix: release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Jun 22, 2024
1 parent d147a54 commit 1f97025
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- uses: docker/build-push-action@v6
with:
sbom: true
push: true
provenance: mode=max
build-args: |
VERSION=${{ env.VERSION }}
tags: frourio/magnito:${{ env.VERSION }},frourio/magnito:latest
platforms: linux/amd64,linux/arm64
# - uses: docker/build-push-action@v6
# with:
# sbom: true
# push: true
# provenance: mode=max
# build-args: |
# VERSION=${{ env.VERSION }}
# tags: frourio/magnito:${{ env.VERSION }},frourio/magnito:latest
# platforms: linux/amd64,linux/arm64
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -39,4 +39,4 @@ jobs:
REGISTRY_ALIAS: i9v2y6d7
REPOSITORY: magnito
IMAGE_TAG: ${{ env.VERSION }}
run: docker buildx build --platform linux/amd64,linux/arm64 -t $ECR_REGISTRY/$REGISTRY_ALIAS/$ECR_REPOSITORY:$IMAGE_TAG -t $ECR_REGISTRY/$REGISTRY_ALIAS/$ECR_REPOSITORY:latest --push .
run: docker buildx build --platform linux/amd64,linux/arm64 --build-arg VERSION=$IMAGE_TAG -t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG -t $REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:latest --push .

0 comments on commit 1f97025

Please sign in to comment.