-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (44 loc) · 1.3 KB
/
docker-image.yml
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
59
60
61
62
63
64
name: Reveal Web test, build and deploy
on:
push:
branches: [ main, zambia-aggregation, zam-agg, nih-simulation ]
jobs:
yarn-install-and-build:
runs-on: ubuntu-latest
steps:
- name: Checkout reveal-web
uses: actions/checkout@v3
with:
repository: akrosinc/reveal-web
- uses: borales/[email protected]
with:
cmd: install # will run `yarn install` command
- uses: borales/[email protected]
with:
cmd: upgrade # will run `yarn upgrade` command
- uses: borales/[email protected]
with:
cmd: build # will run `yarn build` command
env:
NODE_OPTIONS: --openssl-legacy-provider
build-and-push-docker-image:
runs-on: ubuntu-latest
needs: [yarn-install-and-build]
steps:
- name: Output Run Number
run: echo ${{ github.run_number }}
- name: Checkout reveal-web
uses: actions/checkout@v3
with:
repository: akrosinc/reveal-web
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: akrosinc
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: akrosinc/reveal-web:v3.0.${{ github.run_number }}