generated from navikt/sokos-mikrofrontend-template
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.12 KB
/
deploy.yaml
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
45
46
name: Deploy application
on:
push:
branches:
- main
paths-ignore:
- "**.md"
- "LICENCE"
- "CODEOWNERS"
- ".gitignore"
- ".github/workflows/build-pr.yaml"
- ".github/workflows/manual-deploy-dev.yaml"
- ".github/workflows/playwright.yaml"
- ".github/workflows/security.yaml"
- ".github/dependabot.yaml"
env:
TZ: Europe/Oslo
permissions:
contents: "write"
id-token: "write"
jobs:
build:
name: Build/test & push image
uses: navikt/mob-gha-workflows/.github/workflows/node-build-push-image.yaml@main
secrets: inherit
deploy-dev:
needs: build
name: Deploy to dev-gcp
uses: navikt/mob-gha-workflows/.github/workflows/nais-app-deploy.yaml@main
with:
cluster: dev-gcp
resource: .nais/naiserator-dev.yaml
image: ${{ needs.build.outputs.image }}
# deploy-prod:
# needs: [build, deploy-dev]
# name: Deploy to prod-gcp
# uses: navikt/mob-gha-workflows/.github/workflows/nais-app-deploy.yaml@main
# with:
# cluster: prod-gcp
# resource: .nais/naiserator-prod.yaml
# image: ${{ needs.build.outputs.image }}