Skip to content

Commit 59b07ba

Browse files
authored
Add release and patch workflows (#54)
Signed-off-by: achour94 <[email protected]>
1 parent 202b19a commit 59b07ba

File tree

3 files changed

+49
-11
lines changed

3 files changed

+49
-11
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- 'main'
7-
tags:
8-
- 'v[0-9]*'
97
pull_request:
108

119
jobs:
@@ -44,15 +42,6 @@ jobs:
4442
username: gridsuiteci
4543
password: ${{ secrets.DOCKERHUB_TOKEN }}
4644

47-
- name: Build and publish Docker image - Tag
48-
if: startsWith(github.ref, 'refs/tags/')
49-
uses: elgohr/Publish-Docker-Github-Action@33a481be3e179353cb7793a92b57cf9a6c985860 # v4
50-
with:
51-
name: gridsuite/gridadmin-app
52-
username: gridsuiteci
53-
password: ${{ secrets.DOCKERHUB_TOKEN }}
54-
tags: ${{ steps.vars.outputs.tag }}
55-
5645
- name: Broadcast update event
5746
if: github.ref == 'refs/heads/main'
5847
uses: gridsuite/broadcast-event@main

.github/workflows/patch.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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@29746dc4775fab66ef9e0481b57f3c0615b36ee4
14+
with:
15+
releaseVersion: ${{ github.event.inputs.releaseVersion }}
16+
dockerImage: docker.io/gridsuite/gridadmin-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 }}

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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@29746dc4775fab66ef9e0481b57f3c0615b36ee4
18+
with:
19+
releaseVersion: ${{ github.event.inputs.releaseVersion }}
20+
commitSha: ${{ github.event.inputs.gitReference }}
21+
dockerImage: docker.io/gridsuite/gridadmin-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 }}

0 commit comments

Comments
 (0)