-
Notifications
You must be signed in to change notification settings - Fork 7
86 lines (72 loc) · 2.62 KB
/
release-gitflow.yml
File metadata and controls
86 lines (72 loc) · 2.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# Release the client with all components according to Gitflow
name: Release according to Gitflow
on:
push:
branches:
- main
- release
- next
- next-major
- 1.**
jobs:
release-client:
name: Build and release Client
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
env:
DCT_PRIVATE_KEY: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY }}
DCT_PRIVATE_KEY_PASSPHRASE: ${{ secrets.DOCKER_HUB_DCT_PASSPHRASE }}
DCT_PRIVATE_KEY_IDENTIFIER: ${{ secrets.DOCKER_HUB_DCT_PRIVATE_KEY_IDENTIFIER }}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'liberica'
java-version: '17'
# There is an error since 12.04. when restoring the cache.
# cache: 'maven'
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PW }}
- name: Setup DCT
run: sh ./.setup_dct.sh
- run: chmod +x ./.prepare-release.sh
- run: node -v; npm -v
- name: Build all and create release with semantic-release
uses: cycjimmy/semantic-release-action@v2
# you'll need to add an `id` in order to access output variables
id: semantic
with:
# You can specify specifying version range for the extra plugins if you prefer.
extra_plugins: |
@semantic-release/changelog
@google/semantic-release-replace-plugin
@semantic-release/exec
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.JK_GITHUB_TOKEN }}
- name: Upload Test Reports
if: always()
uses: actions/upload-artifact@v3
with:
name: test-reports
path: |
**/surefire-reports/*.xml
**/failsafe-reports/*.xml
!**/failsafe-reports/failsafe-summary.xml
publish-test-results:
name: Publish Test Results
needs: release-client
uses: iris-connect/iris-client/.github/workflows/publish-test-results.yml@develop
container_scan:
name: Container Scan
needs: release-client
uses: iris-connect/iris-client/.github/workflows/trivy-container-scan.yml@develop
with:
image-refs: "[ 'inoeg/iris-client-bff:latest', 'inoeg/iris-client-frontend:latest', 'inoeg/iris-client-nginx:latest', 'inoeg/iris-client-eps:latest', 'inoeg/iris-client-proxy:latest', 'inoeg/app-eps:latest']"