This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge master into migrere-til-unleash-next
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 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,35 @@ | ||
name: Deploy unleash-apitoken | ||
on: | ||
push: | ||
paths: | ||
- ".nais/unleash/unleash-api-token.dev.yaml" | ||
- ".nais/unleash/unleash-api-token.prod.yaml" | ||
|
||
jobs: | ||
deploy-dev: | ||
name: Deploy unleash-apitoken to dev | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Deploy application | ||
uses: nais/deploy/actions/deploy@v1 | ||
env: | ||
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | ||
CLUSTER: dev-gcp | ||
RESOURCE: .nais/unleash/unleash-api-token.dev.yaml | ||
|
||
deploy-prod: | ||
name: Deploy unleash-apitoken to prod | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Deploy application | ||
uses: nais/deploy/actions/deploy@v1 | ||
if: github.ref == 'refs/heads/main' | ||
env: | ||
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | ||
CLUSTER: prod-gcp | ||
RESOURCE: .nais/unleash/unleash-api-token.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: unleash.nais.io/v1 | ||
kind: ApiToken | ||
metadata: | ||
name: nav-dekoratoren | ||
namespace: navno | ||
labels: | ||
team: navno | ||
spec: | ||
unleashInstance: | ||
apiVersion: unleash.nais.io/v1 | ||
kind: RemoteUnleash | ||
name: navno | ||
secretName: nav-dekoratoren-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,17 @@ | ||
apiVersion: unleash.nais.io/v1 | ||
kind: ApiToken | ||
metadata: | ||
name: nav-dekoratoren | ||
namespace: navno | ||
labels: | ||
team: navno | ||
spec: | ||
unleashInstance: | ||
apiVersion: unleash.nais.io/v1 | ||
kind: RemoteUnleash | ||
name: navno | ||
secretName: nav-dekoratoren-unleash-api-token | ||
|
||
# Specify which environment the API token should be created for. | ||
# Can be one of: development, or production. | ||
environment: production |