-
Notifications
You must be signed in to change notification settings - Fork 3
101 lines (84 loc) · 3.07 KB
/
wcstore-docker.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: CI/CD wcstore docker
on:
push:
pull_request:
jobs:
build-api:
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/prod'
concurrency: build-api
env:
DOCKER_IMAGE: ghcr.io/${{ github.repository }}/${{ github.event.repository.name }}-local-wcs-api
DOCKER_TAG: latest
steps:
- name: Checkout source code
uses: noi-techpark/github-actions/checkout@v2
- name: Build and push images
uses: noi-techpark/github-actions/docker-build-and-push@v2
with:
docker-username: ${{ github.actor }}
docker-password: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./backend/data-service/infrastructure/docker
docker-compose-file: docker-compose.local-wcs.yml
build-cdn:
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/prod'
concurrency: build-cdn
env:
DOCKER_IMAGE: ghcr.io/${{ github.repository }}/${{ github.event.repository.name }}-local-wcs-cdn
DOCKER_TAG: latest
steps:
- name: Checkout source code
uses: noi-techpark/github-actions/checkout@v2
- name: Build and push images
uses: noi-techpark/github-actions/docker-build-and-push@v2
with:
docker-username: ${{ github.actor }}
docker-password: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./backend/delivery-service/infrastructure/docker
docker-compose-file: docker-compose.local-wcs.yml
build-frontend:
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/prod'
concurrency: build-frontend
env:
DOCKER_IMAGE: ghcr.io/${{ github.repository }}/${{ github.event.repository.name }}-local-wcs-frontend
DOCKER_TAG: latest
steps:
- name: Checkout source code
uses: noi-techpark/github-actions/checkout@v2
- name: Setup node and yarn
uses: actions/setup-node@v2
with:
node-version: '14.x'
cache: 'yarn'
cache-dependency-path: frontend/yarn.lock
- name: Build
run: |
yarn install
yarn run build
working-directory: frontend
- name: Build and push images
uses: noi-techpark/github-actions/docker-build-and-push@v2
with:
docker-username: ${{ github.actor }}
docker-password: ${{ secrets.GITHUB_TOKEN }}
working-directory: frontend/docker
docker-compose-file: docker-compose.local-wcs.yml
build-cli:
runs-on: ubuntu-20.04
if: github.ref == 'refs/heads/prod'
concurrency: build-cli
env:
DOCKER_IMAGE: ghcr.io/${{ github.repository }}/${{ github.event.repository.name }}-local-wcs-cli
DOCKER_TAG: latest
steps:
- name: Checkout source code
uses: noi-techpark/github-actions/checkout@v2
- name: Build and push images
uses: noi-techpark/github-actions/docker-build-and-push@v2
with:
docker-username: ${{ github.actor }}
docker-password: ${{ secrets.GITHUB_TOKEN }}
working-directory: ./webcompstore-cli/docker
docker-compose-file: docker-compose.local-wcs.yml