File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,33 @@ jobs:
12
12
with :
13
13
persist-credentials : false
14
14
15
+ - name : Parse tag
16
+ id : vars
17
+ run : echo ::set-output name=tag::${GITHUB_REF_NAME#v}
18
+
15
19
- name : Install and Build
16
20
run : |
17
21
npm install
18
- npm run-script test
19
22
npm run-script build
20
23
npm run-script test
21
24
22
- - name : Build and publish Docker image
25
+ - name : Build and publish Docker image - Main
23
26
if : github.ref == 'refs/heads/main'
24
27
uses : elgohr/Publish-Docker-Github-Action@33a481be3e179353cb7793a92b57cf9a6c985860 # v4
25
28
with :
26
29
name : gridsuite/gridadmin-app
27
30
username : gridsuiteci
28
31
password : ${{ secrets.DOCKERHUB_TOKEN }}
29
32
33
+ - name : Build and publish Docker image - Tag
34
+ if : startsWith(github.ref, 'refs/tags/')
35
+ uses : elgohr/Publish-Docker-Github-Action@33a481be3e179353cb7793a92b57cf9a6c985860 # v4
36
+ with :
37
+ name : gridsuite/gridstudy-app
38
+ username : gridsuiteci
39
+ password : ${{ secrets.DOCKERHUB_TOKEN }}
40
+ tags : ${{ steps.vars.outputs.tag }}
41
+
30
42
- name : Broadcast update event
31
43
if : github.ref == 'refs/heads/main'
32
44
uses : gridsuite/broadcast-event@main
You can’t perform that action at this time.
0 commit comments