File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- ' main'
7
+ tags :
8
+ - ' v[0-9]*'
7
9
pull_request :
8
10
9
11
jobs :
33
35
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
36
SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
35
37
36
- - name : Build Docker image
38
+ - name : Build Docker image - Main
37
39
if : github.ref == 'refs/heads/main'
38
40
run : >
39
41
mvn --batch-mode deploy -DskipTests -Dmaven.install.skip -Dmaven.deploy.skip -Dpowsybl.docker.deploy
42
44
-Djib.to.auth.username=gridsuiteci
43
45
-Djib.to.auth.password=${{ secrets.DOCKERHUB_TOKEN }}
44
46
47
+ - name : Build Docker image - Tag
48
+ if : startsWith(github.ref, 'refs/tags/')
49
+ run : >
50
+ mvn --batch-mode deploy -DskipTests -Dmaven.install.skip -Dmaven.deploy.skip -Dpowsybl.docker.deploy
51
+ -Djib.httpTimeout=60000
52
+ -Djib.to.image=docker.io/gridsuite/gateway:${GITHUB_REF_NAME#v}
53
+ -Djib.to.auth.username=gridsuiteci
54
+ -Djib.to.auth.password=${{ secrets.DOCKERHUB_TOKEN }}
55
+
45
56
- name : Broadcast update event
46
57
if : github.ref == 'refs/heads/main'
47
58
uses : gridsuite/broadcast-event@main
You can’t perform that action at this time.
0 commit comments