@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.
@@ -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
- - name: push docker images to dockerhub & GCR
147
- if: steps.semantic.outputs.new-release-published == 'true'
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
- docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:latest
150
- docker tag codfish/actions-playground codfish/actions-playground:$VERSION_TAG
151
- docker tag codfish/actions-playground codfish/actions-playground:$MAJOR_TAG
152
- docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$VERSION_TAG
153
- docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$MAJOR_TAG
154
-
155
- docker push codfish/actions-playground:latest
156
- docker push codfish/actions-playground:$VERSION_TAG
157
- docker push codfish/actions-playground:$MAJOR_TAG
158
- docker push ghcr.io/codfish/actions-playground:latest
159
- docker push ghcr.io/codfish/actions-playground:$VERSION_TAG
160
- docker push ghcr.io/codfish/actions-playground:$MAJOR_TAG
161
- env:
162
- VERSION_TAG: v${{ steps.semantic.outputs.release-version }}
163
- MAJOR_TAG: v${{ steps.semantic.outputs.release-major }}
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
@@ -10,7 +10,7 @@ RUN npm ci
10
10
  COPY ./src ./src
11
11
  COPY ./public ./public
12
12
 
13
- ENV RELEASE_VERSION=6.1.2
13
+ ENV RELEASE_VERSION=6.2.1
14
14
 
15
15
  RUN npm run build
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codfish/actions-playground",
3
- "version": "6.1.2",
3
+ "version": "6.2.1",
4
4
  "description": "My own testing ground for messing around with GitHub Actions.",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -1,3 +1,3 @@
1
- appVersion: 6.1.2
1
+ appVersion: 6.2.1
2
2
  name: actions-playground
3
- version: 6.1.2
3
+ version: 6.2.1