Skip to content

Commit bf732b9

Browse files
authored
Add build docker image to CI (#7332)
* add build docker image to CI * remove node setup * removed local dependency to test passing docker build * Update CHANGELOG.md * Revert "removed local dependency to test passing docker build" This reverts commit a7801e1. * removed unnecessary docker build options * fixed docker build
1 parent 9ea355b commit bf732b9

File tree

8 files changed

+17
-2
lines changed

8 files changed

+17
-2
lines changed

.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ lib/
1616

1717
# Tests
1818
spec/
19+
# Keep local dependencies used to CI tests
20+
!spec/dependencies/
1921

2022
# IDEs
2123
.idea/

.github/workflows/ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ jobs:
7171
- name: Install dependencies
7272
run: npm ci
7373
- run: npm run madge:circular
74+
check-docker:
75+
name: Docker Build
76+
timeout-minutes: 5
77+
runs-on: ubuntu-18.04
78+
steps:
79+
- uses: actions/checkout@v2
80+
- name: Build docker image
81+
uses: docker/build-push-action@v2
7482
check-mongo:
7583
strategy:
7684
matrix:

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ ___
127127
- Added centralized feature deprecation with standardized warning logs (Manuel Trezza) [#7303](https://github.com/parse-community/parse-server/pull/7303)
128128
- Use Node.js 15.13.0 in CI (Olle Jonsson) [#7312](https://github.com/parse-community/parse-server/pull/7312)
129129
- Fix file upload issue for S3 compatible storage (Linode, DigitalOcean) by avoiding empty tags property when creating a file (Ali Oguzhan Yildiz) [#7300](https://github.com/parse-community/parse-server/pull/7300)
130+
- Add building Docker image as CI check (Manuel Trezza) [#7332](https://github.com/parse-community/parse-server/pull/7332)
130131
___
131132
## 4.5.0
132133
[Full Changelog](https://github.com/parse-community/parse-server/compare/4.4.0...4.5.0)

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ RUN apk update; \
55
apk add git;
66
WORKDIR /tmp
77
COPY package*.json ./
8+
9+
# Copy local dependencies for CI tests
10+
COPY spec/dependencies spec/dependencies
11+
812
RUN npm ci
913
COPY . .
1014
RUN npm run build

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"jsdoc-babel": "0.5.0",
9393
"lint-staged": "10.2.3",
9494
"madge": "4.0.2",
95-
"mock-mail-adapter": "file:spec/support/MockMailAdapter",
95+
"mock-mail-adapter": "file:spec/dependencies/mock-mail-adapter",
9696
"mongodb-runner": "4.8.1",
9797
"mongodb-version-list": "1.0.0",
9898
"node-fetch": "2.6.1",

0 commit comments

Comments
 (0)