Skip to content

Commit 1b77f0b

Browse files
committed
rebase main
1 parent 45bb8c1 commit 1b77f0b

File tree

4 files changed

+126
-127
lines changed

4 files changed

+126
-127
lines changed

.github/workflows/build-and-test.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Build and test
2-
32
on:
43
push:
54

.github/workflows/deploy-to-nais.yml

+52-52
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
name: Deploy to nais
22
on:
3-
workflow_call:
4-
inputs:
5-
image:
6-
required: true
7-
type: string
8-
cluster:
9-
required: true
10-
type: string
11-
config_file:
12-
required: true
13-
type: string
14-
vars_file:
15-
required: true
16-
type: string
17-
hpa_file:
18-
required: false
19-
type: string
20-
deploy_valkey:
21-
required: false
22-
type: boolean
3+
workflow_call:
4+
inputs:
5+
image:
6+
required: true
7+
type: string
8+
cluster:
9+
required: true
10+
type: string
11+
config_file:
12+
required: true
13+
type: string
14+
vars_file:
15+
required: true
16+
type: string
17+
hpa_file:
18+
required: false
19+
type: string
20+
deploy_valkey:
21+
required: false
22+
type: boolean
2323

2424
jobs:
25-
deploy:
26-
name: Deploy to nais k8s
27-
runs-on: ubuntu-latest
28-
permissions:
29-
id-token: write
30-
steps:
31-
- name: Checkout repo
32-
uses: actions/checkout@v4
33-
- name: Deploy Valkey
34-
if: ${{ inputs.deploy_valkey == true }}
35-
uses: nais/deploy/actions/deploy@v2
36-
timeout-minutes: 1
37-
continue-on-error: true
38-
env:
39-
CLUSTER: ${{ inputs.cluster }}
40-
RESOURCE: .nais/valkey.yml
41-
VARS: .nais/vars/${{ inputs.vars_file }}
42-
- name: Deploy HPA
43-
if: ${{ inputs.hpa_file }}
44-
uses: nais/deploy/actions/deploy@v2
45-
timeout-minutes: 1
46-
continue-on-error: true
47-
env:
48-
CLUSTER: ${{ inputs.cluster }}
49-
RESOURCE: .nais/hpa/${{inputs.hpa_file}}
50-
- name: Deploy application
51-
uses: nais/deploy/actions/deploy@v2
52-
env:
53-
CLUSTER: ${{ inputs.cluster }}
54-
RESOURCE: .nais/${{ inputs.config_file }}
55-
VAR: image=${{ inputs.image }}
56-
VARS: .nais/vars/${{ inputs.vars_file }}
25+
deploy:
26+
name: Deploy to nais k8s
27+
runs-on: ubuntu-latest
28+
permissions:
29+
id-token: write
30+
steps:
31+
- name: Checkout repo
32+
uses: actions/checkout@v4
33+
- name: Deploy Valkey
34+
if: ${{ inputs.deploy_valkey == true }}
35+
uses: nais/deploy/actions/deploy@v2
36+
timeout-minutes: 1
37+
continue-on-error: true
38+
env:
39+
CLUSTER: ${{ inputs.cluster }}
40+
RESOURCE: .nais/valkey.yml
41+
VARS: .nais/vars/${{ inputs.vars_file }}
42+
- name: Deploy HPA
43+
if: ${{ inputs.hpa_file }}
44+
uses: nais/deploy/actions/deploy@v2
45+
timeout-minutes: 1
46+
continue-on-error: true
47+
env:
48+
CLUSTER: ${{ inputs.cluster }}
49+
RESOURCE: .nais/hpa/${{inputs.hpa_file}}
50+
- name: Deploy application
51+
uses: nais/deploy/actions/deploy@v2
52+
env:
53+
CLUSTER: ${{ inputs.cluster }}
54+
RESOURCE: .nais/${{ inputs.config_file }}
55+
VAR: image=${{ inputs.image }}
56+
VARS: .nais/vars/${{ inputs.vars_file }}

.github/workflows/deploy.dev2.yml

+37-37
Original file line numberDiff line numberDiff line change
@@ -12,40 +12,40 @@ on:
1212
- development
1313

1414
jobs:
15-
build:
16-
uses: ./.github/workflows/build-image.yml
17-
permissions:
18-
contents: read
19-
id-token: write
20-
with:
21-
environment: dev-gcp:dev2
22-
imagename: dev2-deploy
23-
ENV: dev2
24-
ADMIN_ORIGIN: https://portal-admin-q6.oera.no
25-
APP_ORIGIN: https://www-2.ansatt.dev.nav.no
26-
REVALIDATOR_PROXY_ORIGIN: http://nav-enonicxp-frontend-revalidator-proxy-dev2
27-
DECORATOR_URL: https://dekoratoren-beta.intern.dev.nav.no
28-
XP_ORIGIN: https://www-q6.nav.no
29-
TELEMETRY_URL: https://telemetry.ekstern.dev.nav.no/collect
30-
INNLOGGINGSSTATUS_URL: https://www.ekstern.dev.nav.no/person/nav-dekoratoren-api/auth
31-
RELEASE_TAG: dev2-${{ github.sha }}
32-
MELDEKORT_API_URL: https://meldekort-api-q1.intern.dev.nav.no/meldekort/meldekort-api/api/person
33-
NAVNO_SEARCH_API_URL: https://navno-search-api.ekstern.dev.nav.no/content/search-url
34-
FAILOVER_ORIGIN: https://www-2-failover.intern.dev.nav.no
35-
NODE_ENV: ${{ inputs.NODE_ENV }}
36-
secrets:
37-
READER_TOKEN: ${{ secrets.READER_TOKEN }}
38-
SERVICE_SECRET: ${{ secrets.SERVICE_SECRET }}
39-
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
40-
deploy:
41-
uses: ./.github/workflows/deploy-to-nais.yml
42-
needs: build
43-
permissions:
44-
id-token: write
45-
with:
46-
image: ${{ needs.build.outputs.image }}
47-
cluster: dev-gcp
48-
vars_file: vars-dev2.yml
49-
config_file: config.yml
50-
hpa_file: hpa-dev2.yml
51-
deploy_valkey: true
15+
build:
16+
uses: ./.github/workflows/build-image.yml
17+
permissions:
18+
contents: read
19+
id-token: write
20+
with:
21+
environment: dev-gcp:dev2
22+
imagename: dev2-deploy
23+
ENV: dev2
24+
ADMIN_ORIGIN: https://portal-admin-q6.oera.no
25+
APP_ORIGIN: https://www-2.ansatt.dev.nav.no
26+
REVALIDATOR_PROXY_ORIGIN: http://nav-enonicxp-frontend-revalidator-proxy-dev2
27+
DECORATOR_URL: https://dekoratoren-beta.intern.dev.nav.no
28+
XP_ORIGIN: https://www-q6.nav.no
29+
TELEMETRY_URL: https://telemetry.ekstern.dev.nav.no/collect
30+
INNLOGGINGSSTATUS_URL: https://www.ekstern.dev.nav.no/person/nav-dekoratoren-api/auth
31+
RELEASE_TAG: dev2-${{ github.sha }}
32+
MELDEKORT_API_URL: https://meldekort-api-q1.intern.dev.nav.no/meldekort/meldekort-api/api/person
33+
NAVNO_SEARCH_API_URL: https://navno-search-api.ekstern.dev.nav.no/content/search-url
34+
FAILOVER_ORIGIN: https://www-2-failover.intern.dev.nav.no
35+
NODE_ENV: ${{ inputs.NODE_ENV }}
36+
secrets:
37+
READER_TOKEN: ${{ secrets.READER_TOKEN }}
38+
SERVICE_SECRET: ${{ secrets.SERVICE_SECRET }}
39+
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
40+
deploy:
41+
uses: ./.github/workflows/deploy-to-nais.yml
42+
needs: build
43+
permissions:
44+
id-token: write
45+
with:
46+
image: ${{ needs.build.outputs.image }}
47+
cluster: dev-gcp
48+
vars_file: vars-dev2.yml
49+
config_file: config.yml
50+
hpa_file: hpa-dev2.yml
51+
deploy_valkey: true

.github/workflows/deploy.prod.yml

+37-37
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,43 @@ on:
55
- main
66

77
jobs:
8-
build:
9-
uses: ./.github/workflows/build-image.yml
10-
permissions:
11-
contents: read
12-
id-token: write
13-
with:
14-
environment: prod-gcp
15-
imagename: release-${{ github.ref_name }}
16-
ENV: prod
17-
ADMIN_ORIGIN: https://portal-admin.oera.no
18-
APP_ORIGIN: https://www.nav.no
19-
REVALIDATOR_PROXY_ORIGIN: http://nav-enonicxp-frontend-revalidator-proxy
20-
DECORATOR_URL: https://www.nav.no/nav-dekoratoren
21-
XP_ORIGIN: https://www.nav.no
22-
TELEMETRY_URL: https://telemetry.nav.no/collect
23-
INNLOGGINGSSTATUS_URL: https://www.nav.no/person/nav-dekoratoren-api/auth
24-
NAVNO_SEARCH_API_URL: https://navno-search-api.nav.no/content/search-url
25-
RELEASE_TAG: ${{ github.ref_name }}
26-
MELDEKORT_API_URL: https://meldekort-api.nav.no/meldekort/meldekort-api/api/person
27-
FAILOVER_ORIGIN: https://www-failover.nav.no
28-
NODE_ENV: production
29-
secrets:
30-
READER_TOKEN: ${{ secrets.READER_TOKEN }}
31-
SERVICE_SECRET: ${{ secrets.SERVICE_SECRET }}
32-
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
33-
deploy:
34-
uses: ./.github/workflows/deploy-to-nais.yml
35-
needs: build
36-
permissions:
37-
id-token: write
38-
with:
39-
image: ${{ needs.build.outputs.image }}
40-
cluster: prod-gcp
41-
vars_file: vars-prod.yml
42-
config_file: config.yml
43-
hpa_file: hpa-prod.yml
44-
deploy_valkey: true
8+
build:
9+
uses: ./.github/workflows/build-image.yml
10+
permissions:
11+
contents: read
12+
id-token: write
13+
with:
14+
environment: prod-gcp
15+
imagename: release-${{ github.ref_name }}
16+
ENV: prod
17+
ADMIN_ORIGIN: https://portal-admin.oera.no
18+
APP_ORIGIN: https://www.nav.no
19+
REVALIDATOR_PROXY_ORIGIN: http://nav-enonicxp-frontend-revalidator-proxy
20+
DECORATOR_URL: https://www.nav.no/nav-dekoratoren
21+
XP_ORIGIN: https://www.nav.no
22+
TELEMETRY_URL: https://telemetry.nav.no/collect
23+
INNLOGGINGSSTATUS_URL: https://www.nav.no/person/nav-dekoratoren-api/auth
24+
NAVNO_SEARCH_API_URL: https://navno-search-api.nav.no/content/search-url
25+
RELEASE_TAG: ${{ github.ref_name }}
26+
MELDEKORT_API_URL: https://meldekort-api.nav.no/meldekort/meldekort-api/api/person
27+
FAILOVER_ORIGIN: https://www-failover.nav.no
28+
NODE_ENV: production
29+
secrets:
30+
READER_TOKEN: ${{ secrets.READER_TOKEN }}
31+
SERVICE_SECRET: ${{ secrets.SERVICE_SECRET }}
32+
NAIS_WORKLOAD_IDENTITY_PROVIDER: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
33+
deploy:
34+
uses: ./.github/workflows/deploy-to-nais.yml
35+
needs: build
36+
permissions:
37+
id-token: write
38+
with:
39+
image: ${{ needs.build.outputs.image }}
40+
cluster: prod-gcp
41+
vars_file: vars-prod.yml
42+
config_file: config.yml
43+
hpa_file: hpa-prod.yml
44+
deploy_valkey: true
4545

4646
release:
4747
name: Create a new release

0 commit comments

Comments
 (0)