-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (44 loc) · 1.43 KB
/
perfect-strangers.yaml
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
name: Build GoGo
on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]
workflow_dispatch: # From TUT
jobs:
build-server:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
defaults:
run:
working-directory: setup/server
steps:
- uses: actions/checkout@v2 # Needed by default
- name: Build server image
run: docker build . --file Dockerfile --tag perfectstrangers/setup-server:v1.0.1
- name: Log into DockerHub Registry xx
run: echo "perfect-strangers" | docker login -u perfectstrangers --password-stdin
- name: Push server image to DockerHub Registry
run: docker push perfectstrangers/setup-server:v1.0.1
build-client:
runs-on: ubuntu-latest
# strategy:
# matrix:
# node-version: [18.x]
defaults:
run:
working-directory: setup/client
steps:
- uses: actions/checkout@v2 # Needed by default
- name: Install node_modules
run: npm i
# - name: Run unit tests
# run: npm test
- name: Build client image
run: docker build . --file Dockerfile --tag perfectstrangers/setup-client:v1.0.1
- name: Log into DockerHub Registry
run: echo "perfect-strangers" | docker login -u perfectstrangers --password-stdin
- name: Push server image to DockerHub Registry
run: docker push perfectstrangers/setup-client:v1.0.1