@codfish/actions-playground 0.0.0-PR-65--1f6da01 → 0.0.0-PR-67--054ffb3
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.
|
@@ -45,6 +45,14 @@ jobs:
|
|
|
45
45
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
46
46
|
GCR_TOKEN: ${{ secrets.GCR_TOKEN }}
|
|
47
47
|
|
|
48
|
+
- name: Set up QEMU
|
|
49
|
+
uses: docker/setup-qemu-action@v3
|
|
50
|
+
with:
|
|
51
|
+
platforms: arm64
|
|
52
|
+
|
|
53
|
+
- name: Set up Docker Buildx
|
|
54
|
+
uses: docker/setup-buildx-action@v3
|
|
55
|
+
|
|
48
56
|
- name: docker build
|
|
49
57
|
run: docker build -t codfish/actions-playground:latest .
|
|
50
58
|
|
|
@@ -56,8 +64,10 @@ jobs:
|
|
|
56
64
|
name: text-file-${{ github.ref_name }}
|
|
57
65
|
path: text.txt
|
|
58
66
|
|
|
67
|
+
- run: cat Dockerfile
|
|
68
|
+
|
|
59
69
|
- name: semantic-release
|
|
60
|
-
uses:
|
|
70
|
+
uses: docker://ghcr.io/codfish/semantic-release-action@sha256:71048986f7e28f024cbad0ef106a7ef20b9b0d322f3a8aa51d89f1c424e75061
|
|
61
71
|
id: semantic
|
|
62
72
|
with:
|
|
63
73
|
additional-packages: |
|
|
@@ -70,32 +80,14 @@ jobs:
|
|
|
70
80
|
{
|
|
71
81
|
'replacements': [
|
|
72
82
|
{
|
|
73
|
-
'files': ['Dockerfile'],
|
|
83
|
+
'files': ['Dockerfile'],
|
|
74
84
|
'from': 'RELEASE_VERSION=.*',
|
|
75
|
-
'to': 'RELEASE_VERSION=${nextRelease.version}'
|
|
76
|
-
'results': [
|
|
77
|
-
{
|
|
78
|
-
'file': 'Dockerfile',
|
|
79
|
-
'hasChanged': true,
|
|
80
|
-
'numMatches': 1,
|
|
81
|
-
'numReplacements': 1
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
'countMatches': true
|
|
85
|
+
'to': 'RELEASE_VERSION=${nextRelease.version}'
|
|
85
86
|
},
|
|
86
87
|
{
|
|
87
88
|
'files': ['provisioning/Chart.yml'],
|
|
88
89
|
'from': 'ersion: .*',
|
|
89
|
-
'to': 'ersion: ${nextRelease.version}'
|
|
90
|
-
'results': [
|
|
91
|
-
{
|
|
92
|
-
'file': 'provisioning/Chart.yml',
|
|
93
|
-
'hasChanged': true,
|
|
94
|
-
'numMatches': 2,
|
|
95
|
-
'numReplacements': 2
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
'countMatches': true
|
|
90
|
+
'to': 'ersion: ${nextRelease.version}'
|
|
99
91
|
}
|
|
100
92
|
]
|
|
101
93
|
}
|
|
@@ -159,24 +151,49 @@ jobs:
|
|
|
159
151
|
run: |
|
|
160
152
|
echo $DOCKER_TAGS;
|
|
161
153
|
|
|
162
|
-
|
|
163
|
-
|
|
154
|
+
# Step to create a list of tags to push to GCR always including the latest tag and optionally
|
|
155
|
+
# the new release tag and major release tag.
|
|
156
|
+
- name: Create tags list
|
|
157
|
+
id: tags
|
|
158
|
+
shell: bash
|
|
164
159
|
run: |
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
160
|
+
TAGS="codfish/actions-playground:latest,ghcr.io/codfish/actions-playground:latest"
|
|
161
|
+
if [ "${{ steps.semantic.outputs.new-release-published }}" == "true" ]; then
|
|
162
|
+
TAGS="${TAGS},codfish/actions-playground:v${{ steps.semantic.outputs.release-version }}"
|
|
163
|
+
TAGS="${TAGS},codfish/actions-playground:v${{ steps.semantic.outputs.release-major }}"
|
|
164
|
+
TAGS="${TAGS},ghcr.io/codfish/actions-playground:v${{ steps.semantic.outputs.release-version }}"
|
|
165
|
+
TAGS="${TAGS},ghcr.io/codfish/actions-playground:v${{ steps.semantic.outputs.release-major }}"
|
|
166
|
+
fi
|
|
167
|
+
echo "tags=${TAGS}" >> "$GITHUB_OUTPUT"
|
|
168
|
+
|
|
169
|
+
# Push docker images to GCR
|
|
170
|
+
# Dockerhub is auto synced with the repo, no need to explicitly deploy
|
|
171
|
+
- name: Build and push docker images to GCR
|
|
172
|
+
uses: docker/build-push-action@v5
|
|
173
|
+
with:
|
|
174
|
+
context: .
|
|
175
|
+
platforms: linux/arm64,linux/amd64
|
|
176
|
+
push: true
|
|
177
|
+
tags: ${{ steps.tags.outputs.tags }}
|
|
178
|
+
# - name: push docker images to dockerhub & GCR
|
|
179
|
+
# if: steps.semantic.outputs.new-release-published == 'true'
|
|
180
|
+
# run: |
|
|
181
|
+
# docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:latest
|
|
182
|
+
# docker tag codfish/actions-playground codfish/actions-playground:$VERSION_TAG
|
|
183
|
+
# docker tag codfish/actions-playground codfish/actions-playground:$MAJOR_TAG
|
|
184
|
+
# docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$VERSION_TAG
|
|
185
|
+
# docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$MAJOR_TAG
|
|
186
|
+
#
|
|
187
|
+
# docker push codfish/actions-playground:latest
|
|
188
|
+
# docker push codfish/actions-playground:$VERSION_TAG
|
|
189
|
+
# docker push codfish/actions-playground:$MAJOR_TAG
|
|
190
|
+
# docker push ghcr.io/codfish/actions-playground:latest
|
|
191
|
+
# docker push ghcr.io/codfish/actions-playground:$VERSION_TAG
|
|
192
|
+
# docker push ghcr.io/codfish/actions-playground:$MAJOR_TAG
|
|
193
|
+
# env:
|
|
194
|
+
# VERSION_TAG: v${{ steps.semantic.outputs.release-version }}
|
|
195
|
+
# MAJOR_TAG: v${{ steps.semantic.outputs.release-major }}
|
|
196
|
+
|
|
180
197
|
# - name: build docs
|
|
181
198
|
# run: |
|
|
182
199
|
# npm ci --no-save
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Troubleshooting Github Actions
|
|
2
|
+
|
|
3
|
+
on: pull_request_target
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
troubleshooting:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
|
|
9
|
+
steps:
|
|
10
|
+
- uses: actions/checkout@v3
|
|
11
|
+
|
|
12
|
+
- run: printenv
|
|
13
|
+
|
|
14
|
+
- name: docker login
|
|
15
|
+
run: |
|
|
16
|
+
echo "$DOCKER_PASSWORD" | docker login -u $DOCKER_USERNAME --password-stdin
|
|
17
|
+
echo "$GCR_TOKEN" | docker login ghcr.io -u codfish --password-stdin
|
|
18
|
+
env:
|
|
19
|
+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
20
|
+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
21
|
+
GCR_TOKEN: ${{ secrets.GCR_TOKEN }}
|
|
22
|
+
|
|
23
|
+
# https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions
|
|
24
|
+
- name: Dump GitHub context
|
|
25
|
+
env:
|
|
26
|
+
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
27
|
+
run: echo "$GITHUB_CONTEXT"
|
|
28
|
+
|
|
29
|
+
- name: Dump strategy context
|
|
30
|
+
env:
|
|
31
|
+
STRATEGY_CONTEXT: ${{ toJson(strategy) }}
|
|
32
|
+
run: echo "$STRATEGY_CONTEXT"
|
|
33
|
+
|
|
34
|
+
- name: Dump matrix context
|
|
35
|
+
env:
|
|
36
|
+
MATRIX_CONTEXT: ${{ toJson(matrix) }}
|
|
37
|
+
run: echo "$MATRIX_CONTEXT"
|
|
38
|
+
|
|
39
|
+
- name: Dump job context
|
|
40
|
+
env:
|
|
41
|
+
JOB_CONTEXT: ${{ toJson(job) }}
|
|
42
|
+
run: echo "$JOB_CONTEXT"
|
|
43
|
+
|
|
44
|
+
- name: Dump runner context
|
|
45
|
+
env:
|
|
46
|
+
RUNNER_CONTEXT: ${{ toJson(runner) }}
|
|
47
|
+
run: echo "$RUNNER_CONTEXT"
|
|
48
|
+
|
|
49
|
+
- name: Dump steps context
|
|
50
|
+
env:
|
|
51
|
+
STEPS_CONTEXT: ${{ toJson(steps) }}
|
|
52
|
+
run: echo "$STEPS_CONTEXT"
|
package/Dockerfile
CHANGED
package/package.json
CHANGED
package/provisioning/Chart.yml
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appVersion:
|
|
1
|
+
appVersion: 6.2.1
|
|
2
2
|
name: actions-playground
|
|
3
|
-
version:
|
|
3
|
+
version: 6.2.1
|