Skip to content

Commit a2ac8d1

Browse files
authored
fix: Docker image not published to Docker Hub on new release (#8905)
1 parent 27ad6f4 commit a2ac8d1

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,20 @@ jobs:
117117
check-docker:
118118
name: Docker Build
119119
timeout-minutes: 15
120-
runs-on: ubuntu-latest
120+
runs-on: ubuntu-20.04
121121
steps:
122122
- name: Checkout repository
123123
uses: actions/checkout@v4
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

+7-7
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
env:
4343
REGISTRY: docker.io
4444
IMAGE_NAME: parseplatform/parse-server
45-
runs-on: ubuntu-latest
45+
runs-on: ubuntu-20.04
4646
permissions:
4747
contents: read
4848
packages: write
@@ -56,26 +56,26 @@ 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: .
8181
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8
@@ -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

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
IMAGE_NAME: parseplatform/parse-server
1515
jobs:
1616
build:
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-20.04
1818
permissions:
1919
contents: read
2020
packages: write
@@ -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,7 +48,7 @@ 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: .
5454
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8

Dockerfile

+2-2
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)