-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 979 Bytes
/
preprod.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: Build, push, and deploy (preprod)
on:
push:
branches:
- 'main'
paths-ignore:
- '**.md'
- '**/**.md'
workflow_call:
jobs:
build-and-test:
name: Test frontend
uses: ./.github/workflows/test.yml
build-and-push:
name: Build and push Docker container for preprod
uses: ./.github/workflows/build-push.yml
with:
environment: preprod
secrets: inherit
permissions:
contents: 'read'
id-token: 'write'
packages: 'read'
deploy-preprod:
name: Deploy to preprod
needs: [build-and-test, build-and-push]
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v2
env:
DRY_RUN: false
PRINT_PAYLOAD: true
CLUSTER: dev-gcp
RESOURCE: .nais/nais-preprod.yml
VAR: app_version=${{ github.sha }},image=${{ needs.build-and-push.outputs.image }}