Skip to content

Commit e3094fb

Browse files
committed
use timestamp in docker image tag
1 parent 9ac503f commit e3094fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,16 @@ jobs:
3535
# Work in an empty directory to avoid unnecessary copying.
3636
mkdir context
3737
38+
- name: Get current date
39+
id: date
40+
run: echo "::set-output name=timestamp::$(date +'%Y%m%d')"
41+
3842
- name: Build and push to registry
3943
uses: docker/build-push-action@v6
4044
with:
4145
context: context
4246
push: true
43-
tags: ghcr.io/antmicro/cores-veer-el2:latest
47+
tags: ghcr.io/antmicro/cores-veer-el2:${{ steps.data.outputs.timestamp }}
4448
file: .github/Dockerfile
4549
build-args: |
4650
VERILATOR_VERSION=${{ env.VERILATOR_VERSION }}

0 commit comments

Comments
 (0)