-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (43 loc) · 1.47 KB
/
deploy.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
39
40
41
42
43
44
name: Deploy to prod
on:
release:
types: [released]
jobs:
build:
if: github.event.release.target_commitish == 'master'
uses: ./.github/workflows/build-image.yml
permissions:
contents: "read"
id-token: "write"
with:
environment: prod-gcp
imagename: release-${{ github.ref_name }}
ENV: prod
ADMIN_ORIGIN: https://portal-admin.oera.no
APP_ORIGIN: https://www.nav.no
REVALIDATOR_PROXY_ORIGIN: http://nav-enonicxp-frontend-revalidator-proxy
DECORATOR_URL: https://www.nav.no/dekoratoren
XP_ORIGIN: https://www.nav.no
TELEMETRY_URL: https://telemetry.nav.no/collect
INNLOGGINGSSTATUS_URL: https://www.nav.no/person/nav-dekoratoren-api/auth
NAVNO_SEARCH_API_URL: https://navno-search-api.nav.no/content/search-url
RELEASE_TAG: ${{ github.ref_name }}
NAVNO_API_URL: https://www.nav.no/person/navno-api
FAILOVER_ORIGIN: https://www-failover.nav.no
NODE_ENV: production
secrets:
READER_TOKEN: ${{ secrets.READER_TOKEN }}
SERVICE_SECRET: ${{ secrets.SERVICE_SECRET }}
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
deploy:
uses: ./.github/workflows/deploy-to-nais.yml
needs: build
permissions:
id-token: "write"
with:
image: ${{ needs.build.outputs.image }}
cluster: prod-gcp
vars_file: vars-prod.yml
config_file: config.yml
hpa_file: hpa-prod.yml
deploy_redis: true