File tree Expand file tree Collapse file tree 3 files changed +49
-15
lines changed Expand file tree Collapse file tree 3 files changed +49
-15
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]*'
9
7
pull_request :
10
8
11
9
jobs :
35
33
fetch-depth : 0
36
34
persist-credentials : false
37
35
38
- - name : Parse tag
39
- id : vars
40
- run : echo ::set-output name=tag::${GITHUB_REF_NAME#v}
41
-
42
36
- name : Install and Build
43
37
run : |
44
38
npm install
61
55
username : gridsuiteci
62
56
password : ${{ secrets.DOCKERHUB_TOKEN }}
63
57
64
- - name : Build and publish Docker image - Tag
65
- if : startsWith(github.ref, 'refs/tags/')
66
- uses : elgohr/Publish-Docker-Github-Action@33a481be3e179353cb7793a92b57cf9a6c985860 # v4
67
- with :
68
- name : gridsuite/gridexplore-app
69
- username : gridsuiteci
70
- password : ${{ secrets.DOCKERHUB_TOKEN }}
71
- tags : ${{ steps.vars.outputs.tag }}
72
-
73
58
- name : Broadcast update event
74
59
if : github.ref == 'refs/heads/main'
75
60
uses : gridsuite/broadcast-event@main
Original file line number Diff line number Diff line change
1
+ name : Patch
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ releaseVersion :
7
+ description : Release version (vX.X)
8
+ required : true
9
+ type : string
10
+
11
+ jobs :
12
+ run-patch :
13
+ uses : powsybl/github-ci/.github/workflows/patch-frontend-app-generic.yml@859a4effdaa9c5e79684378f39778fd8d06df3c5
14
+ with :
15
+ releaseVersion : ${{ github.event.inputs.releaseVersion }}
16
+ dockerImage : docker.io/gridsuite/gridexplore-app
17
+ dockerUsername : gridsuiteci
18
+ githubappId : ${{ vars.GRIDSUITE_ACTIONS_APPID }}
19
+ secrets :
20
+ githubappPrivateKey : ${{ secrets.GRIDSUITE_ACTIONS_SECRET }}
21
+ docker-token : ${{ secrets.DOCKERHUB_TOKEN }}
22
+ sonar-token : ${{ secrets.SONAR_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ releaseVersion :
7
+ description : Release version (vX.X)
8
+ required : true
9
+ type : string
10
+ gitReference :
11
+ description : SHA of the commit from where to release or branch name
12
+ required : true
13
+ type : string
14
+
15
+ jobs :
16
+ run-release :
17
+ uses : powsybl/github-ci/.github/workflows/release-frontend-app-generic.yml@859a4effdaa9c5e79684378f39778fd8d06df3c5
18
+ with :
19
+ releaseVersion : ${{ github.event.inputs.releaseVersion }}
20
+ commitSha : ${{ github.event.inputs.gitReference }}
21
+ dockerImage : docker.io/gridsuite/gridexplore-app
22
+ dockerUsername : gridsuiteci
23
+ githubappId : ${{ vars.GRIDSUITE_ACTIONS_APPID }}
24
+ secrets :
25
+ githubappPrivateKey : ${{ secrets.GRIDSUITE_ACTIONS_SECRET }}
26
+ docker-token : ${{ secrets.DOCKERHUB_TOKEN }}
27
+ sonar-token : ${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments