Skip to content

Commit 5e88462

Browse files
committed
add build docker image to CI
1 parent 9ea355b commit 5e88462

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,30 @@ 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: Use Node.js ${{ matrix.NODE_VERSION }}
81+
uses: actions/setup-node@v1
82+
with:
83+
node-version: ${{ matrix.node-version }}
84+
- name: Cache Node.js modules
85+
uses: actions/cache@v2
86+
with:
87+
path: ~/.npm
88+
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
89+
restore-keys: |
90+
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
91+
- name: Install dependencies
92+
run: npm ci
93+
- name: Build docker image
94+
uses: docker/build-push-action@v2
95+
with:
96+
push: false
97+
tags: user/app:latest
7498
check-mongo:
7599
strategy:
76100
matrix:

0 commit comments

Comments
 (0)