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