-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (40 loc) · 1.12 KB
/
app-etterlatte-design.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
name: etterlatte-design
env:
APP_NAME: ${{ github.workflow }}
on:
workflow_dispatch:
push:
branches:
- main
- EY-4090-nettside-for-visuelle-standarer
# paths:
# - apps/etterlatte-design/**
permissions:
contents: read
id-token: write
jobs:
deploy-spa:
name: Deploy to dev-gcp
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 21
- name: Install dependencies
run: npm install
working-directory: apps/${{ env.APP_NAME }}
- name: Build
run: npm run build
working-directory: apps/${{ env.APP_NAME }}
- uses: navikt/frontend/actions/spa-deploy/v2@main
with:
app: ${{ env.APP_NAME }}
team: etterlatte
source: apps/${{ env.APP_NAME }}/dist
ingress: https://${{ env.APP_NAME }}.ekstern.dev.nav.no
environment: dev
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}