We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad26ac1 commit 2a700deCopy full SHA for 2a700de
.github/workflows/docker-build.yml
@@ -73,6 +73,10 @@ jobs:
73
username: ${{ github.actor }}
74
password: ${{ secrets.GITHUB_TOKEN }}
75
76
+ - name: Set build date
77
+ id: build_date
78
+ run: echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
79
+
80
- name: Build and export Docker image
81
uses: docker/build-push-action@v6
82
with:
@@ -87,7 +91,7 @@ jobs:
87
91
build-args: |
88
92
VERSION=${{ steps.meta.outputs.version }}
89
93
COMMIT_SHA=${{ github.sha }}
90
- BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
94
+ BUILD_DATE=${{ steps.build_date.outputs.BUILD_DATE }}
95
96
- name: Scan image for vulnerabilities
97
if: github.event_name != 'pull_request'
0 commit comments