Skip to content

Commit

Permalink
use correct git tag source
Browse files Browse the repository at this point in the history
  • Loading branch information
the-infinity committed Apr 6, 2024
1 parent 32a5611 commit 5796081
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,12 @@ jobs:
with:
string: ${{ github.repository }}

- name: set current date as env variable
id: version
run: |
echo "builddatetime=$(date +'%Y%m%dT%H%M%S')" >> $GITHUB_OUTPUT
- name: build and push Docker image
uses: docker/build-push-action@v5
with:
push: true
tags: |
ghcr.io/${{ steps.lower-repo.outputs.lowercase }}:latest,ghcr.io/${{ steps.lower-repo.outputs.lowercase }}:${{ steps.vars.outputs.tag }}
ghcr.io/${{ steps.lower-repo.outputs.lowercase }}:latest,ghcr.io/${{ steps.lower-repo.outputs.lowercase }}:${{ github.ref_name }}
platforms: linux/amd64,linux/arm64
# https://docs.docker.com/build/ci/github-actions/cache/#cache-backend-api
cache-from: type=gha
Expand Down

0 comments on commit 5796081

Please sign in to comment.