Skip to content

Commit

Permalink
fix docker build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wuast94 committed Jul 4, 2024
1 parent dad5146 commit 74d5796
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
logout: false

- name: Set date tag
id: date_tag
run: echo "DATE_TAG=$(date +'%Y%m%d')" >> $GITHUB_ENV

- name: Build and push
id: push
uses: docker/build-push-action@v6
Expand All @@ -47,7 +51,7 @@ jobs:
push: true
tags: |
ghcr.io/${{ github.repository }}/imageproxy:latest
ghcr.io/${{ github.repository }}/imageproxy:$(date +'%Y%m%d')
ghcr.io/${{ github.repository }}/imageproxy:${{ steps.date_tag.outputs.DATE_TAG }}
platforms: linux/amd64,linux/arm64

- name: Generate artifact attestation
Expand Down

0 comments on commit 74d5796

Please sign in to comment.