fix(deps): bump the next group with 2 updates #68
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 & Deploy | |
on: push | |
env: | |
APP: nav-epj | |
permissions: | |
contents: read | |
id-token: write | |
packages: write | |
jobs: | |
test-and-verify: | |
name: Test, lint and verify | |
runs-on: ubuntu-latest | |
steps: | |
- uses: navikt/teamsykmelding-github-actions-workflows/actions/yarn-cached@main | |
with: | |
NPM_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | |
- run: yarn lint | |
- run: yarn tsc | |
# - run: yarn test | |
build-dev: | |
name: Build for dev | |
runs-on: ubuntu-latest | |
permissions: | |
packages: 'write' | |
contents: 'read' | |
id-token: 'write' | |
outputs: | |
image: ${{ steps.build-and-publish.outputs.image }} | |
steps: | |
- uses: navikt/teamsykmelding-github-actions-workflows/actions/next-to-docker@main | |
id: build-and-publish | |
with: | |
app: ${{ env.APP }} | |
env: dev | |
team: helseopplysninger | |
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} | |
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }} | |
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
deploy-dev-main: | |
name: Deploy main to dev | |
environment: | |
name: dev | |
url: https://epj.ekstern.dev.nav.no | |
runs-on: ubuntu-latest | |
needs: [build-dev, test-and-verify] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: nais/deploy/actions/deploy@v2 | |
env: | |
CLUSTER: dev-gcp | |
RESOURCE: .nais/nais.yml | |
VAR: image=${{ needs.build-dev.outputs.image }} |