Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Workflor for unleash-apitoken
Browse files Browse the repository at this point in the history
  • Loading branch information
jstnhlj committed Nov 29, 2023
1 parent 0ecf248 commit 7351c9e
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,23 @@ jobs:
# tag_name: release/prod@${{ env.TAG }}
# name: Release to prod
# prerelease: false

apply-apitoken-unleash:
name: Legger til ApiToken for Unleash
runs-on: ubuntu-latest
needs: [test-build-and-push]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: deploy to dev
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: nais/unleash-apitoken-dev.yaml
- name: deploy to prod
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: prod-gcp
RESOURCE: nais/unleash-apitoken-prod.yaml
14 changes: 14 additions & 0 deletions nais/unleash-apitoken-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: unleash.nais.io/v1
kind: ApiToken
metadata:
name: veilarbregistrering-unleash
namespace: paw
labels:
"team": "paw"
spec:
unleashInstance:
apiVersion: unleash.nais.io/v1
kind: RemoteUnleash
name: paw
secretName: veilarbregistrering-unleash-api-token
environment: development
14 changes: 14 additions & 0 deletions nais/unleash-apitoken-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: unleash.nais.io/v1
kind: ApiToken
metadata:
name: veilarbregistrering-unleash
namespace: paw
labels:
"team": "paw"
spec:
unleashInstance:
apiVersion: unleash.nais.io/v1
kind: RemoteUnleash
name: paw
secretName: veilarbregistrering-unleash-api-token
environment: production

0 comments on commit 7351c9e

Please sign in to comment.