-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (48 loc) · 1.22 KB
/
docker.yml
File metadata and controls
58 lines (48 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Docker
on:
pull_request:
branches:
- master
types:
- closed
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: yarn install
- run: yarn react-build
- uses: actions/upload-artifact@v2
with:
name: frontend
path: build
docker:
needs: build
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
- name: set up qemu
uses: docker/setup-qemu-action@v1
- name: set up buildx
uses: docker/setup-buildx-action@v1
- name: log in to ghcr.io
uses: docker/login-action@v1
with:
registry: ghcr.io
username: mathisburger
password: ${{ secrets.GITHUB_TOKEN }}
- name: build and push
uses: docker/build-push-action@v2
with:
push: true
tags: ghcr.io/mathisburger/testlytic:latest