Skip to content

Commit ba559b4

Browse files
authored
Build on tag (#45)
1 parent 35d2f67 commit ba559b4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/maven.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3434
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
3535

36-
- name: Build Docker image
36+
- name: Build Docker image - Main
3737
if: github.ref == 'refs/heads/main'
3838
run: >
3939
mvn --batch-mode deploy -DskipTests -Dmaven.install.skip -Dmaven.deploy.skip -Dpowsybl.docker.deploy
@@ -42,6 +42,15 @@ jobs:
4242
-Djib.to.auth.username=gridsuiteci
4343
-Djib.to.auth.password=${{ secrets.DOCKERHUB_TOKEN }}
4444
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+
4554
- name: Broadcast update event
4655
if: github.ref == 'refs/heads/main'
4756
uses: gridsuite/broadcast-event@main

0 commit comments

Comments
 (0)