Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Fix step
Browse files Browse the repository at this point in the history
  • Loading branch information
izellevy committed Jan 2, 2024
1 parent 63fc7ac commit 8dd7b67
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/build-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,16 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Export docker tag
run: echo "IMAGE_TAG=${{ inputs.image-tag || $(git describe --tags | sed 's/V//') }}" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64,windows/amd64
push: true
tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}
env:
INPUT_TAG: ${{ inputs.image-tag }}
run: |
IMAGE_TAG = ${INPUT_TAG:-$(git describe --tags | sed 's/V//')}
echo $IMAGE_TAG
echo IMAGE_TAG=$IMAGE_TAG >> $GITHUB_ENV
# - name: Build and push
# uses: docker/build-push-action@v5
# with:
# context: .
# platforms: linux/amd64,linux/arm64,windows/amd64
# push: true
# tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}

0 comments on commit 8dd7b67

Please sign in to comment.