@codfish/actions-playground 6.1.2 → 6.2.1
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.
- package/.github/workflows/release.yml +51 -18
- package/Dockerfile +1 -1
- package/package.json +1 -1
- package/provisioning/Chart.yml +2 -2
|
@@ -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
|
|
|
@@ -72,7 +80,7 @@ jobs:
|
|
|
72
80
|
{
|
|
73
81
|
'replacements': [
|
|
74
82
|
{
|
|
75
|
-
'files': ['Dockerfile'],
|
|
83
|
+
'files': ['Dockerfile'],
|
|
76
84
|
'from': 'RELEASE_VERSION=.*',
|
|
77
85
|
'to': 'RELEASE_VERSION=${nextRelease.version}'
|
|
78
86
|
},
|
|
@@ -143,24 +151,49 @@ jobs:
|
|
|
143
151
|
run: |
|
|
144
152
|
echo $DOCKER_TAGS;
|
|
145
153
|
|
|
146
|
-
|
|
147
|
-
|
|
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
|
|
148
159
|
run: |
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
+
|
|
164
197
|
# - name: build docs
|
|
165
198
|
# run: |
|
|
166
199
|
# npm ci --no-save
|
package/Dockerfile
CHANGED
package/package.json
CHANGED
package/provisioning/Chart.yml
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
appVersion: 6.1
|
|
1
|
+
appVersion: 6.2.1
|
|
2
2
|
name: actions-playground
|
|
3
|
-
version: 6.1
|
|
3
|
+
version: 6.2.1
|