We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d74e48e commit ecb794bCopy full SHA for ecb794b
.github/workflows/build-publish.yml
@@ -27,12 +27,17 @@ jobs:
27
username: ${{ github.actor }}
28
password: ${{ github.token }}
29
30
+ - name: set date-based tag
31
+ run: |
32
+ echo "DATE_TAG=$(date +%Y-%m-%dT%H-%M)" >> $GITHUB_ENV
33
+
34
- name: build and push Docker image
35
uses: docker/build-push-action@v5
36
with:
37
push: true
38
tags: |
39
ghcr.io/${{ github.repository }}:latest
40
+ ghcr.io/${{ github.repository }}:${{ env.DATE_TAG }}
41
platforms: linux/amd64,linux/arm64
42
# https://docs.docker.com/build/ci/github-actions/cache/#cache-backend-api
43
cache-from: type=gha
0 commit comments