Skip to content

Commit 9282bc5

Browse files
authored
ci: Fix failing Docker release by removing arm/v6 and arm/v7 support (#8977)
1 parent 47184f0 commit 9282bc5

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ jobs:
123123
uses: actions/checkout@v2
124124
- name: Set up QEMU
125125
id: qemu
126-
uses: docker/setup-qemu-action@v1
126+
uses: docker/setup-qemu-action@v2
127127
- name: Set up Docker Buildx
128-
uses: docker/setup-buildx-action@v1
128+
uses: docker/setup-buildx-action@v2
129129
- name: Build docker image
130-
uses: docker/build-push-action@v2
130+
uses: docker/build-push-action@v3
131131
with:
132132
context: .
133-
platforms: linux/amd64
133+
platforms: linux/amd64, linux/arm64/v8
134134
check-lock-file-version:
135135
name: NPM Lock File Version
136136
timeout-minutes: 5

.github/workflows/release-automated.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,29 +56,29 @@ jobs:
5656
ref: ${{ needs.release.outputs.current_tag }}
5757
- name: Set up QEMU
5858
id: qemu
59-
uses: docker/setup-qemu-action@v1
59+
uses: docker/setup-qemu-action@v2
6060
- name: Set up Docker Buildx
61-
uses: docker/setup-buildx-action@v1
61+
uses: docker/setup-buildx-action@v2
6262
- name: Log into Docker Hub
6363
if: github.event_name != 'pull_request'
64-
uses: docker/login-action@v1
64+
uses: docker/login-action@v2
6565
with:
6666
username: ${{ secrets.DOCKERHUB_USERNAME }}
6767
password: ${{ secrets.DOCKERHUB_TOKEN }}
6868
- name: Extract Docker metadata
6969
id: meta
70-
uses: docker/metadata-action@v3
70+
uses: docker/metadata-action@v4
7171
with:
7272
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
7373
flavor: |
7474
latest=${{ steps.branch.outputs.branch_name == 'release' }}
7575
tags: |
7676
type=semver,pattern={{version}},value=${{ needs.release.outputs.current_tag }}
7777
- name: Build and push Docker image
78-
uses: docker/build-push-action@v2
78+
uses: docker/build-push-action@v3
7979
with:
8080
context: .
81-
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8
81+
platforms: linux/amd64, linux/arm64/v8
8282
push: ${{ github.event_name != 'pull_request' }}
8383
tags: ${{ steps.meta.outputs.tags }}
8484
labels: ${{ steps.meta.outputs.labels }}
@@ -112,4 +112,4 @@ jobs:
112112
uses: peaceiris/[email protected]
113113
with:
114114
github_token: ${{ secrets.GITHUB_TOKEN }}
115-
publish_dir: ./docs
115+
publish_dir: ./docs

.github/workflows/release-manual-docker.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ jobs:
2828
ref: ${{ github.event.inputs.ref }}
2929
- name: Set up QEMU
3030
id: qemu
31-
uses: docker/setup-qemu-action@v1
31+
uses: docker/setup-qemu-action@v2
3232
- name: Set up Docker Buildx
33-
uses: docker/setup-buildx-action@v1
33+
uses: docker/setup-buildx-action@v2
3434
- name: Log into Docker Hub
3535
if: github.event_name != 'pull_request'
36-
uses: docker/login-action@v1
36+
uses: docker/login-action@v2
3737
with:
3838
username: ${{ secrets.DOCKERHUB_USERNAME }}
3939
password: ${{ secrets.DOCKERHUB_TOKEN }}
4040
- name: Extract Docker metadata
4141
id: meta
42-
uses: docker/metadata-action@v3
42+
uses: docker/metadata-action@v4
4343
with:
4444
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4545
flavor: |
@@ -48,10 +48,10 @@ jobs:
4848
type=semver,enable=true,pattern={{version}},value=${{ github.event.inputs.ref }}
4949
type=raw,enable=${{ github.event.inputs.ref == '' }},value=latest
5050
- name: Build and push Docker image
51-
uses: docker/build-push-action@v2
51+
uses: docker/build-push-action@v3
5252
with:
5353
context: .
54-
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8
54+
platforms: linux/amd64, linux/arm64/v8
5555
push: ${{ github.event_name != 'pull_request' }}
5656
tags: ${{ steps.meta.outputs.tags }}
5757
labels: ${{ steps.meta.outputs.labels }}

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
############################################################
22
# Build stage
33
############################################################
4-
FROM node:lts-alpine AS build
4+
FROM node:18-alpine AS build
55

66
RUN apk --no-cache add git
77
WORKDIR /tmp
@@ -24,7 +24,7 @@ RUN npm ci --omit=dev --ignore-scripts \
2424
############################################################
2525
# Release stage
2626
############################################################
27-
FROM node:lts-alpine AS release
27+
FROM node:18-alpine AS release
2828

2929
VOLUME /parse-server/cloud /parse-server/config
3030

0 commit comments

Comments
 (0)