@codfish/actions-playground 0.0.0-PR-43--f19b776 → 0.0.0-PR-44--6afc78d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,16 +14,28 @@ jobs:
|
|
|
14
14
|
release:
|
|
15
15
|
runs-on: ubuntu-latest
|
|
16
16
|
|
|
17
|
+
concurrency:
|
|
18
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
19
|
+
cancel-in-progress: true
|
|
20
|
+
|
|
17
21
|
steps:
|
|
18
|
-
- uses: actions/checkout@
|
|
22
|
+
- uses: actions/checkout@v3
|
|
19
23
|
with:
|
|
20
24
|
persist-credentials: false
|
|
21
|
-
fetch-depth: 0
|
|
22
25
|
|
|
23
26
|
- uses: actions/setup-node@v1
|
|
24
27
|
with:
|
|
25
28
|
node-version: 18.x
|
|
26
29
|
|
|
30
|
+
- shell: bash
|
|
31
|
+
run: |
|
|
32
|
+
echo "DOCKER_TAGS=main-${GITHUB_SHA},main,latest" >> $GITHUB_ENV;
|
|
33
|
+
|
|
34
|
+
- name: echo DOCKER_TAGS
|
|
35
|
+
shell: bash
|
|
36
|
+
run: |
|
|
37
|
+
echo $DOCKER_TAGS;
|
|
38
|
+
|
|
27
39
|
- name: docker login
|
|
28
40
|
run: |
|
|
29
41
|
echo "$DOCKER_PASSWORD" | docker login -u $DOCKER_USERNAME --password-stdin
|
|
@@ -87,17 +99,25 @@ jobs:
|
|
|
87
99
|
}
|
|
88
100
|
],
|
|
89
101
|
'countMatches': true
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
'files': ['provisioning/Chart.yml'],
|
|
105
|
+
'from': 'ersion: .*',
|
|
106
|
+
'to': 'ersion: ${nextRelease.version}',
|
|
107
|
+
'results': [
|
|
108
|
+
{
|
|
109
|
+
'file': 'provisioning/Chart.yml',
|
|
110
|
+
'hasChanged': true,
|
|
111
|
+
'numMatches': 2,
|
|
112
|
+
'numReplacements': 2
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
'countMatches': true
|
|
90
116
|
}
|
|
91
117
|
]
|
|
92
118
|
}
|
|
93
119
|
],
|
|
94
|
-
[
|
|
95
|
-
'@semantic-release/git',
|
|
96
|
-
{
|
|
97
|
-
'assets': ['Dockerfile'],
|
|
98
|
-
'message': 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
|
|
99
|
-
}
|
|
100
|
-
],
|
|
120
|
+
[ '@semantic-release/git', {'assets': ['Dockerfile', 'provisioning/Chart.yml']} ],
|
|
101
121
|
'@semantic-release/release-notes-generator',
|
|
102
122
|
'@semantic-release/npm',
|
|
103
123
|
'@semantic-release/github'
|
|
@@ -106,6 +126,16 @@ jobs:
|
|
|
106
126
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
107
127
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
108
128
|
|
|
129
|
+
- shell: bash
|
|
130
|
+
if: steps.semantic.outputs.new-release-published == 'true'
|
|
131
|
+
run: |
|
|
132
|
+
echo "DOCKER_TAGS=${DOCKER_TAGS},${RELEASE_VERSION}" >> $GITHUB_ENV;
|
|
133
|
+
|
|
134
|
+
- name: echo DOCKER_TAGS
|
|
135
|
+
shell: bash
|
|
136
|
+
run: |
|
|
137
|
+
echo $DOCKER_TAGS;
|
|
138
|
+
|
|
109
139
|
- name: push docker images to dockerhub & GCR
|
|
110
140
|
if: steps.semantic.outputs.new-release-published == 'true'
|
|
111
141
|
run: |
|
|
@@ -6,15 +6,20 @@ jobs:
|
|
|
6
6
|
validate:
|
|
7
7
|
runs-on: ubuntu-latest
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
-
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
with:
|
|
16
|
+
fetch-depth: 0
|
|
14
17
|
|
|
15
|
-
- uses: actions/setup-node@
|
|
18
|
+
- uses: actions/setup-node@v3
|
|
19
|
+
id: setup-node
|
|
16
20
|
with:
|
|
17
|
-
|
|
21
|
+
cache: 'npm'
|
|
22
|
+
node-version-file: '.nvmrc'
|
|
18
23
|
registry-url: 'https://registry.npmjs.org'
|
|
19
24
|
|
|
20
25
|
- name: troubleshooting
|
|
@@ -25,8 +30,15 @@ jobs:
|
|
|
25
30
|
git branch -a
|
|
26
31
|
echo "$GITHUB_CONTEXT"
|
|
27
32
|
|
|
33
|
+
- uses: actions/cache@v3
|
|
34
|
+
id: npm-cache
|
|
35
|
+
with:
|
|
36
|
+
path: node_modules
|
|
37
|
+
key: ${{ runner.os }}-node_modules-${{ steps.setup-node.outputs.node-version }}-${{ hashFiles('**/package-lock.json') }}
|
|
38
|
+
|
|
28
39
|
- name: install dependencies
|
|
29
|
-
|
|
40
|
+
if: steps.npm-cache.outputs.cache-hit != 'true'
|
|
41
|
+
run: npm ci --prefer-offline --no-audit
|
|
30
42
|
|
|
31
43
|
- run:
|
|
32
44
|
npm run lint:commit -- --from="origin/${{ github.base_ref }}"
|
package/Dockerfile
CHANGED
package/package.json
CHANGED