-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1013 Bytes
/
master.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
name: master
on:
push:
branches:
- master
jobs:
build:
permissions:
contents: "read"
id-token: "write"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nais/docker-build-push@v0
name: Build and push image
id: docker-build-push
with:
team: tbd
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
outputs:
image: ${{ steps.docker-build-push.outputs.image }}
deploy:
name: deploy
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cluster: [dev-gcp, prod-gcp]
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: ${{ matrix.cluster }}
RESOURCE: deploy/${{ matrix.cluster }}.yml
IMAGE: ${{ needs.build.outputs.image }}