-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (36 loc) · 1.06 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
name: Build, push and deploy prod
on:
push:
branches:
- main
- master
paths-ignore:
- README.md
- docker-compose.yaml
- '*.jenkinsfile'
- Makefile
- CODEOWNERS
jobs:
build_and_push:
permissions:
contents: "read"
id-token: "write"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: nais/docker-build-push@v0
id: docker-push
with:
team: aura #
docker_context: . # optional, default .
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }} # required, but is defined as an organization variable
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} # required, but is defined as an organization secret
- name: Deploy prod-gcp
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: nais/vera.yaml
VARS: nais/prod.yaml
VAR: image=${{ steps.docker-push.outputs.image }}