Skip to content

Commit

Permalink
Flytte applikasjon over til pia (#187)
Browse files Browse the repository at this point in the history
* Flytte applikasjon over til 'pia' namespace

---------

Co-authored-by: Thomas Dufourd <[email protected]>
  • Loading branch information
runska and thomasdufourd authored Feb 5, 2024
1 parent 4a10ff8 commit 82e4c6d
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 24 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
- samesite
- flytte-applikasjon-over-til-pia
paths-ignore:
- "**.md"
- "**/**.md"
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
uses: nais/docker-build-push@v0
id: docker-push
with:
team: teamia
team: pia
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
salsa: false
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/deploy-alerts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,24 @@ on:
paths:
- '.nais/alerts.yaml'
- '.github/workflows/deploy-alerts.yaml'

permissions:
id-token: write

jobs:
apply-alerts:
name: Apply alerts to clusters
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: deploy to dev-gcp
uses: nais/deploy/actions/deploy@v1
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: .nais/alerts.yaml
- name: deploy to prod-gcp
uses: nais/deploy/actions/deploy@v1
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: .nais/alerts.yaml
9 changes: 6 additions & 3 deletions .github/workflows/deploy-redirect-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@ on:
- ".github/workflows/deploy-redirect-dev.yaml"
- ".nais/redirect-sykefravarsstatistikk-dev.yaml"
- ".nais/redirect-forebyggingsplan-dev.yaml"

permissions:
id-token: write

jobs:
deploy:
name: Deploy redirect ingresses to dev-gcp
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Deploy sykefravarsstatistikk redirect ingress to dev
uses: nais/deploy/actions/deploy@master
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: "\
.nais/redirect-sykefravarsstatistikk-dev.yaml,\
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/deploy-redirect-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,25 @@ run-name: Deploy ingresses to prod | ${{ github.event.head_commit.message }}
on:
push:
branches:
- 'main'
- main
paths:
- '.nais/redirect-sykefravarsstatistikk-prod.yaml'
- '.github/workflows/deploy-redirect-prod.yaml'
- '.nais/redirect-forebyggingsplan-prod.yaml'
- '.nais/redirect-samtalestotte-prod.yaml'

permissions:
id-token: write

jobs:
deploy:
name: Deploy redirect ingresses to prod-gcp
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Deploy redirect ingresses to prod
uses: nais/deploy/actions/deploy@master
uses: nais/deploy/actions/deploy@v2
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: "\
.nais/redirect-sykefravarsstatistikk-prod.yaml,\
Expand Down
5 changes: 3 additions & 2 deletions .nais/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: nais.io/v1alpha1
kind: Application
metadata:
name: min-ia
namespace: teamia
namespace: pia
labels:
team: teamia
team: pia
spec:
image: {{image}}
port: 3000
Expand Down Expand Up @@ -85,6 +85,7 @@ spec:
- application: fia-arbeidsgiver
namespace: pia
- application: forebyggingsplan
namespace: teamia
external:
- host: arbeidsgiver.intern.dev.nav.no
- host: dekoratoren.dev.nav.no
Expand Down
4 changes: 2 additions & 2 deletions .nais/ekstern-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: nais.io/v1alpha1
kind: Application
metadata:
name: min-ia-mock
namespace: teamia
namespace: pia
labels:
team: teamia
team: pia
spec:
image: {{image}}
port: 3000
Expand Down
5 changes: 3 additions & 2 deletions .nais/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ apiVersion: nais.io/v1alpha1
kind: Application
metadata:
name: min-ia
namespace: teamia
namespace: pia
labels:
team: teamia
team: pia
spec:
image: {{image}}
port: 3000
Expand Down Expand Up @@ -87,6 +87,7 @@ spec:
- application: fia-arbeidsgiver
namespace: pia
- application: forebyggingsplan
namespace: teamia
external:
- host: www.nav.no
- host: arbeidsgiver.nav.no
Expand Down
4 changes: 2 additions & 2 deletions .nais/redirect-forebyggingsplan-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ metadata:
prometheus.io/scrape: "false"
labels:
app: min-ia
team: teamia
team: pia
name: dev-redirect-forebyggingsplan-to-forebygge-fravar
namespace: teamia
namespace: pia
spec:
ingressClassName: nais-ingress
rules:
Expand Down
4 changes: 2 additions & 2 deletions .nais/redirect-sykefravarsstatistikk-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ metadata:
prometheus.io/scrape: "false"
labels:
app: min-ia
team: teamia
team: pia
name: dev-redirect-sykefravarsstatistikk-to-forebygge-fravar
namespace: teamia
namespace: pia
spec:
ingressClassName: nais-ingress
rules:
Expand Down

0 comments on commit 82e4c6d

Please sign in to comment.