Skip to content

Commit e6623f7

Browse files
authored
Update docker.yml
1 parent 5cae684 commit e6623f7

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/docker.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ jobs:
1313
env:
1414
repo: ${{github.event.repository.name}}
1515
APP_NAME: ${repo:6}
16+
TAGNAME: latest
1617
steps:
1718
- uses: actions/checkout@v2
1819
name: Check out code
1920

20-
- name: npm install jinjia2-cli
21+
- name: Get all tags
22+
if: ${{ github.ref != 'refs/heads/main' }}
2123
run: |
22-
echo ${{github.ref_name}}
23-
echo '${{ toJSON(github) }}'
24-
echo ${{ env.APP_NAME }}
24+
tmptag=${{ github.ref}}
25+
arraytag=(${tmptag//./})
26+
TAGNAME=${arraytag[0]},${arraytag[1]},${{ github.ref}},latest
27+
28+
echo $TAGNAME
29+

0 commit comments

Comments
 (0)