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 22a1b75 commit 805a2ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,15 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Git describe
id: ghd
uses: proudust/gh-describe@v1
- name: Export docker tag
env:
INPUT_TAG: ${{ inputs.image-tag }}
FALLBACK_TAG: ${{ steps.ghd.outputs.describe }}
run: |
export IMAGE_TAG=${INPUT_TAG:-$(git describe --tags | sed 's/V//')}
export IMAGE_TAG=${INPUT_TAG:-$FALLBACK_TAG}
echo $IMAGE_TAG
echo IMAGE_TAG=$IMAGE_TAG >> $GITHUB_ENV
# - name: Build and push
Expand Down

0 comments on commit 805a2ea

Please sign in to comment.