-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (54 loc) · 1.56 KB
/
production.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
name: Deploy to production
on:
release:
types: [published]
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- dockerfile: ./docker/web/Dockerfile
image: ghcr.io/${{ github.repository }}web
- dockerfile: ./docker/worker/Dockerfile
image: ghcr.io/${{ github.repository }}worker
uses: ./.github/workflows/build_docker.yml
with:
image: ${{ matrix.image }}
dockerfile: ${{ matrix.dockerfile }}
deploy-api:
needs: [build]
uses: ./.github/workflows/deployment.yml
with:
versionvar_filename: keeshond
service_name: analytics-api
env_name: prod-eu-west
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
deploy-worker:
needs: [build, deploy-api]
uses: ./.github/workflows/deployment.yml
with:
versionvar_filename: keeshond
service_name: analytics-worker
env_name: prod-eu-west
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
deploy-api-test:
needs: [build]
uses: ./.github/workflows/deployment.yml
with:
versionvar_filename: keeshond
service_name: analytics-api
env_name: test
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
deploy-worker-test:
needs: [build, deploy-api-test]
uses: ./.github/workflows/deployment.yml
with:
versionvar_filename: keeshond
service_name: analytics-worker
env_name: test
secrets:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}