Skip to content

Commit 24e9bdc

Browse files
authored
ci: Fix docker image pushing to Docker Hub (#7548)
* add actions file * nit * add multi-platform * add buildx * reduce platforms * remove arm7 * add back arm7 * add missing archs * remove failing image * add back in linux/s390x * switch image name to parse-server * remove failing images * nit spelling * Nit * add comment about nightly builds
1 parent 5ab974d commit 24e9bdc

File tree

3 files changed

+59
-1
lines changed

3 files changed

+59
-1
lines changed

.github/workflows/docker-publish.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: docker
2+
3+
on:
4+
schedule:
5+
- cron: '19 17 * * *' # Nightly builds capture upstream updates to dependency images such as node.
6+
push:
7+
branches: [ master ]
8+
tags: [ '*.*.*' ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
env:
13+
REGISTRY: docker.io
14+
IMAGE_NAME: parseplatform/parse-server
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-18.04
20+
permissions:
21+
contents: read
22+
packages: write
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v2
27+
28+
- name: Set up QEMU
29+
id: qemu
30+
uses: docker/setup-qemu-action@v1
31+
32+
- name: Set up Docker Buildx
33+
uses: docker/setup-buildx-action@v1
34+
35+
- name: Log into Docker Hub
36+
if: github.event_name != 'pull_request'
37+
uses: docker/login-action@v1
38+
with:
39+
username: ${{ secrets.DOCKERHUB_USERNAME }}
40+
password: ${{ secrets.DOCKERHUB_TOKEN }}
41+
42+
- name: Extract Docker metadata
43+
id: meta
44+
uses: docker/metadata-action@v3
45+
with:
46+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
47+
flavor: |
48+
latest=true
49+
50+
- name: Build and push Docker image
51+
uses: docker/build-push-action@v2
52+
with:
53+
context: .
54+
platforms: linux/amd64, linux/arm/v6, linux/arm/v7, linux/arm64/v8
55+
push: ${{ github.event_name != 'pull_request' }}
56+
tags: ${{ steps.meta.outputs.tags }}
57+
labels: ${{ steps.meta.outputs.labels }}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ ___
150150
- Add CI check to add changelog entry (Manuel Trezza) [#7512](https://github.com/parse-community/parse-server/pull/7512)
151151
- Refactor: uniform issue templates across repos (Manuel Trezza) [#7528](https://github.com/parse-community/parse-server/pull/7528)
152152
- ci: bump ci environment (Manuel Trezza) [#7539](https://github.com/parse-community/parse-server/pull/7539)
153+
- CI now pushes docker images to Docker Hub (Corey Baker) [#7548](https://github.com/parse-community/parse-server/pull/7548)
153154

154155
## 4.10.3
155156
[Full Changelog](https://github.com/parse-community/parse-server/compare/4.10.2...4.10.3)

src/LiveQuery/ParseWebSocketServer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class ParseWebSocketServer {
1111
config.server = server;
1212
const wss = loadAdapter(config.wssAdapter, WSAdapter, config);
1313
wss.onListen = () => {
14-
logger.info('Parse LiveQuery Server starts running');
14+
logger.info('Parse LiveQuery Server started running');
1515
};
1616
wss.onConnection = ws => {
1717
ws.on('error', error => {

0 commit comments

Comments
 (0)