This repository has been archived by the owner on Jan 14, 2025. It is now read-only.
Update README.md #20
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: Build and deploy to nais | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-publish-on-master: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build and push docker image | |
uses: nais/docker-build-push@v0 | |
id: docker-build-push | |
with: | |
team: personbruker | |
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} | |
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }} | |
- name: 'Deploy to prod-fss' | |
uses: nais/deploy/actions/deploy@v2 | |
env: | |
CLUSTER: prod-fss | |
RESOURCE: ./nais/prod-fss/nais.yaml | |
VAR: version=${{steps.docker-build-push.outputs.image}} | |
- name: 'Deploy to dev-fss' | |
uses: nais/deploy/actions/deploy@v2 | |
env: | |
CLUSTER: dev-fss | |
RESOURCE: ./nais/dev-fss/nais.yaml | |
VAR: version=${{steps.docker-build-push.outputs.image}} |