Commit 41c6e3b 1 parent 6728e8c commit 41c6e3b Copy full SHA for 41c6e3b
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 20
20
registry : ghcr.io
21
21
username : ${{ github.actor }}
22
22
password : ${{ secrets.GITHUB_TOKEN }}
23
-
23
+ - name : Get current date
24
+ id : date
25
+ run : echo "::set-output name=date::$(date +'%Y-%m-%d-%h-%M')"
24
26
- name : Build and push Docker image dev
25
27
if : github.ref_name == 'dev'
26
28
uses : docker/build-push-action@v5
30
32
push : true
31
33
build-args : |
32
34
"VERSION=${{ github.sha }}-dev"
33
- tags : ghcr.io/linalinn/kicad-render:dev
35
+ tags : ghcr.io/linalinn/kicad-render:dev.ghcr.io/linalinn/kicad-render:nightly-${{ steps.date.outputs.date }}
34
36
35
37
- name : Build and push Docker image
36
38
if : github.ref_name == github.event.repository.default_branch
41
43
push : true
42
44
build-args : |
43
45
"VERSION=${{ github.sha }}"
44
- tags : ghcr.io/linalinn/kicad-render:nightly
46
+ tags : ghcr.io/linalinn/kicad-render:nightly,ghcr.io/linalinn/kicad-render:nightly-${{ steps.date.outputs.date }}
You can’t perform that action at this time.
0 commit comments