Skip to content

Commit 2722cc3

Browse files
committed
CI/CD | 03. Creating a GitHub Action
1 parent 22f8106 commit 2722cc3

File tree

183 files changed

+44772
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+44772
-10
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
name: tests
22

3-
on:
4-
[push, pull_request]
5-
6-
jobs:
7-
build:
8-
runs-on: ubuntu-18.04
9-
steps:
10-
- uses: actions/checkout@v2
11-
- run: cd 22_Back_to_the_Client/app/auth && npm install && npm run test:ci
12-
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-18.04
8+
steps:
9+
- uses: actions/checkout@v2
10+
- run: cd 23_CI_CD/app/auth && npm install && npm run test:ci

23_CI_CD.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020

2121
<br/>
2222

23+
### 03. Creating a GitHub Action
24+
25+
<br/>
26+
2327
---
2428

2529
<br/>

23_CI_CD/app/auth/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

23_CI_CD/app/auth/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM node:12.16.3-alpine3.9
2+
3+
WORKDIR /app
4+
COPY package.json ./
5+
RUN npm install --only=prod
6+
COPY ./ ./
7+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)