-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.02 KB
/
_config-prod.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
name: CI/CD to production
on:
workflow_dispatch:
permissions:
pull-requests: read
contents: read
id-token: write
jobs:
build_and_test:
uses: ./.github/workflows/test.yml
build_and_push_docker_image:
needs: build_and_test
uses: ./.github/workflows/build-docker.yml
with:
PROJECT_ID_ARTIFACT_REGISTRY: vl-bots-common/vl-invoicerbot-prod-repository
REGION: europe-west1
SERVICE: invoicerbot-prod
secrets:
WIF_PROVIDER: ${{ secrets.WIF_PROVIDER_PROD }}
WIF_SERVICE_ACCOUNT: ${{ secrets.WIF_SERVICE_ACCOUNT_PROD }}
deploy_to_prod:
needs: build_and_push_docker_image
uses: ./.github/workflows/deploy-cloudrun.yml
with:
PROJECT_ID_ARTIFACT_REGISTRY: vl-bots-common/vl-invoicerbot-prod-repository
SERVICE: invoicerbot-prod
PROJECT_ID_CLOUD_RUN: vl-bots-invoicerbot-prod
REGION: europe-west1
BUILD_ENV: prod
secrets:
WIF_PROVIDER: ${{ secrets.WIF_PROVIDER_PROD }}
WIF_SERVICE_ACCOUNT: ${{ secrets.WIF_SERVICE_ACCOUNT_PROD }}