Skip to content

Commit

Permalink
Update build-n-push-main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone authored Jul 10, 2024
1 parent 35400da commit 788d7e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-n-push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ jobs:
#
- name: Build Docker image
run: |
BRANCH_NAME="${GITHUB_REF////_}"
docker build -f src/main/docker/Dockerfile.native-micro -t ghcr.io/${{ github.repository }}:$BRANCH_NAME .
echo "branch_name=${GITHUB_REF////_}" >> $GITHUB_ENV
docker build -f src/main/docker/Dockerfile.native-micro -t ghcr.io/${{ github.repository }}:${{ env.branch_name }} .
#
# Push Docker image.
Expand All @@ -119,7 +119,7 @@ jobs:
# Get Docker image with sha256.
#
- name: Get Docker image with sha256
run: echo "image_sha256= $(docker image inspect -f '{{index .RepoDigests 0}}' ghcr.io/${{ github.repository }}:${{ env.BRANCH_NAME }})" >> "$GITHUB_ENV"
run: echo "image_sha256=$(docker image inspect -f '{{index .RepoDigests 0}}' ghcr.io/${{ github.repository }}:${{ env.branch_name }})" >> "$GITHUB_ENV"

#
# Login to Azure.
Expand Down

0 comments on commit 788d7e3

Please sign in to comment.