IS-1488: Added unleash api token file #3
Workflow file for this run
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
name: Unleash api-tokens | ||
on: | ||
merge_group: | ||
pull_request: | ||
paths: | ||
- .github/workflows/unleash-apitoken.yaml | ||
- .nais//unleash/unleash-apitoken-dev.yaml | ||
- .nais//unleash/unleash-apitoken-prod.yaml | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- .github/workflows/unleash-apitoken.yaml | ||
- .nais//unleash/unleash-apitoken-dev.yaml | ||
- .nais/unleash/unleash-apitoken-dev.yaml | ||
jobs: | ||
apply-apitoken-unleash: | ||
Check failure on line 19 in .github/workflows/unleash-apitoken.yaml GitHub Actions / Unleash api-tokensInvalid workflow file
|
||
name: Apply ApiToken for Unleash to cluster | ||
runs-on: ubuntu-latest | ||
needs: [ci] | ||
if: github.event_name == 'push' && github.ref_name == 'main' | ||
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/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/unleash-apitoken-prod.yaml |