@codfish/actions-playground 6.1.2 → 6.2.0

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.
@@ -72,7 +72,7 @@ jobs:
72
72
  {
73
73
  'replacements': [
74
74
  {
75
- 'files': ['Dockerfile'],
75
+ 'files': ['Dockerfile'],
76
76
  'from': 'RELEASE_VERSION=.*',
77
77
  'to': 'RELEASE_VERSION=${nextRelease.version}'
78
78
  },
@@ -143,24 +143,49 @@ jobs:
143
143
  run: |
144
144
  echo $DOCKER_TAGS;
145
145
 
146
- - name: push docker images to dockerhub & GCR
147
- if: steps.semantic.outputs.new-release-published == 'true'
146
+ # Step to create a list of tags to push to GCR always including the latest tag and optionally
147
+ # the new release tag and major release tag.
148
+ - name: Create tags list
149
+ id: tags
150
+ shell: bash
148
151
  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 }}
152
+ TAGS="codfish/actions-playground:latest,ghcr.io/codfish/actions-playground:latest"
153
+ if [ "${{ steps.semantic.outputs.new-release-published }}" == "true" ]; then
154
+ TAGS="${TAGS},codfish/actions-playground:v${{ steps.semantic.outputs.release-version }}"
155
+ TAGS="${TAGS},codfish/actions-playground:v${{ steps.semantic.outputs.release-major }}"
156
+ TAGS="${TAGS},ghcr.io/codfish/actions-playground:v${{ steps.semantic.outputs.release-version }}"
157
+ TAGS="${TAGS},ghcr.io/codfish/actions-playground:v${{ steps.semantic.outputs.release-major }}"
158
+ fi
159
+ echo "tags=${TAGS}" >> "$GITHUB_OUTPUT"
160
+
161
+ # Push docker images to GCR
162
+ # Dockerhub is auto synced with the repo, no need to explicitly deploy
163
+ - name: Build and push docker images to GCR
164
+ uses: docker/build-push-action@v5
165
+ with:
166
+ context: .
167
+ platforms: linux/arm64,linux/amd64
168
+ push: true
169
+ tags: ${{ steps.tags.outputs.tags }}
170
+ # - name: push docker images to dockerhub & GCR
171
+ # if: steps.semantic.outputs.new-release-published == 'true'
172
+ # run: |
173
+ # docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:latest
174
+ # docker tag codfish/actions-playground codfish/actions-playground:$VERSION_TAG
175
+ # docker tag codfish/actions-playground codfish/actions-playground:$MAJOR_TAG
176
+ # docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$VERSION_TAG
177
+ # docker tag codfish/actions-playground ghcr.io/codfish/actions-playground:$MAJOR_TAG
178
+ #
179
+ # docker push codfish/actions-playground:latest
180
+ # docker push codfish/actions-playground:$VERSION_TAG
181
+ # docker push codfish/actions-playground:$MAJOR_TAG
182
+ # docker push ghcr.io/codfish/actions-playground:latest
183
+ # docker push ghcr.io/codfish/actions-playground:$VERSION_TAG
184
+ # docker push ghcr.io/codfish/actions-playground:$MAJOR_TAG
185
+ # env:
186
+ # VERSION_TAG: v${{ steps.semantic.outputs.release-version }}
187
+ # MAJOR_TAG: v${{ steps.semantic.outputs.release-major }}
188
+
164
189
  # - name: build docs
165
190
  # run: |
166
191
  # 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.0
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.0",
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.0
2
2
  name: actions-playground
3
- version: 6.1.2
3
+ version: 6.2.0