-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 1017 Bytes
/
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
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:
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-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 }}