Skip to content

Commit d83fe19

Browse files
committed
chore(build): add date
1 parent e21699e commit d83fe19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build/docker/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ runs:
5454
type=semver,pattern={{version}}
5555
type=sha,enable=${{ !startsWith(github.ref, 'refs/tags') }},prefix=,format=long
5656
57+
- name: Set BUILD_DATE
58+
id: meta_date
59+
shell: bash
60+
run: echo "timestamp=$(date -u +"%Y-%m-%dT%H:%M:%SZ")" >> "$GITHUB_OUTPUT"
61+
5762
- name: Create ECR Registry
5863
shell: bash
5964
env:
@@ -78,3 +83,4 @@ runs:
7883
labels: ${{ steps.meta.outputs.labels }}
7984
build-args: |
8085
DOCKER_TAG=${{ inputs.tag }}
86+
BUILD_DATE=${{ steps.meta_date.outputs.timestamp }}

0 commit comments

Comments
 (0)