@codfish/actions-playground 0.0.0-PR-44--fa7de66 → 0.0.0-PR-46--455e117
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,11 +6,22 @@ jobs:
|
|
|
6
6
|
validate:
|
|
7
7
|
runs-on: ubuntu-latest
|
|
8
8
|
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
9
13
|
steps:
|
|
10
14
|
- uses: actions/checkout@v3
|
|
11
15
|
with:
|
|
12
16
|
fetch-depth: 0
|
|
13
17
|
|
|
18
|
+
- uses: actions/setup-node@v3
|
|
19
|
+
id: setup-node
|
|
20
|
+
with:
|
|
21
|
+
cache: 'npm'
|
|
22
|
+
node-version-file: '.nvmrc'
|
|
23
|
+
registry-url: 'https://registry.npmjs.org'
|
|
24
|
+
|
|
14
25
|
- name: troubleshooting
|
|
15
26
|
env:
|
|
16
27
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
@@ -19,13 +30,6 @@ jobs:
|
|
|
19
30
|
git branch -a
|
|
20
31
|
echo "$GITHUB_CONTEXT"
|
|
21
32
|
|
|
22
|
-
- uses: actions/setup-node@v3
|
|
23
|
-
id: setup-node
|
|
24
|
-
with:
|
|
25
|
-
cache: 'npm'
|
|
26
|
-
node-version: 18.x
|
|
27
|
-
registry-url: 'https://registry.npmjs.org'
|
|
28
|
-
|
|
29
33
|
- uses: actions/cache@v3
|
|
30
34
|
id: npm-cache
|
|
31
35
|
with:
|
package/CODEOWNERS
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# About CODEOWNERS: Syntax and Example
|
|
2
|
+
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
|
|
3
|
+
#
|
|
4
|
+
# These owners will be the default owners for everything in
|
|
5
|
+
# the repo. Unless a later match takes precedence,
|
|
6
|
+
# @global-owner1 and @global-owner2 will be requested for
|
|
7
|
+
# review when someone opens a pull request.
|
|
8
|
+
* @codfish
|
package/Dockerfile
CHANGED
package/package.json
CHANGED