-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[KAIZEN-0] Legge til unleash for BFF
- Loading branch information
1 parent
f67303c
commit c7dfa4d
Showing
5 changed files
with
92 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "Deploy unleash api token" | ||
on: | ||
push: | ||
paths: | ||
- .nais/unleash/** | ||
- .github/workflows/unleash.yml | ||
jobs: | ||
deploy-unleash-api-token-to-dev: | ||
if: github.ref == 'refs/heads/dev' | ||
name: Deploy unleash api token to dev-fss | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Deploy unleash api token | ||
uses: nais/deploy/actions/deploy@v2 | ||
env: | ||
CLUSTER: dev-fss | ||
RESOURCE: .nais/unleash/unleash-apitoken-preprod.yaml | ||
|
||
deploy-unleash-api-token-to-prod: | ||
if: github.ref == 'refs/heads/master' | ||
name: Deploy unleash api-token to prod-fss | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Deploy unleash api token | ||
uses: nais/deploy/actions/deploy@v2 | ||
env: | ||
CLUSTER: prod-fss | ||
RESOURCE: .nais/unleash/unleash-apitoken-prod.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: unleash.nais.io/v1 | ||
kind: ApiToken | ||
metadata: | ||
name: modiapersonoversikt | ||
namespace: personoversikt | ||
labels: | ||
team: personoversikt | ||
spec: | ||
unleashInstance: | ||
apiVersion: unleash.nais.io/v1 | ||
kind: RemoteUnleash | ||
name: personoversikt | ||
secretName: modiapersonoversikt-unleash-api-token | ||
|
||
# Specify which environment the API token should be created for. | ||
# Can be one of: development, or production. | ||
environment: development | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: unleash.nais.io/v1 | ||
kind: ApiToken | ||
metadata: | ||
name: modiapersonoversikt | ||
namespace: personoversikt | ||
labels: | ||
team: personoversikt | ||
spec: | ||
unleashInstance: | ||
apiVersion: unleash.nais.io/v1 | ||
kind: RemoteUnleash | ||
name: personoversikt | ||
secretName: modiapersonoversikt-unleash-api-token | ||
|
||
# Specify which environment the API token should be created for. | ||
# Can be one of: development, or production. | ||
environment: production | ||
|