Legg til huskelapp på komponent som kanskje skal fjernes #4020
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: Build, push, and deploy app to dev | |
on: | |
workflow_dispatch: | |
push: | |
branches-ignore: | |
- 'main' | |
env: | |
BASE_PATH: /familie/barnetrygd/soknad/ordinaer/ | |
jobs: | |
test: | |
name: Kjør typecheck og tester | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
registry-url: "https://npm.pkg.github.com" | |
- name: Installer node-pakker | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | |
run: yarn --prefer-offline --frozen-lockfile | |
- name: Kjør typecheck | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | |
run: yarn typecheck | |
- name: Kjør tester | |
env: | |
CI: true | |
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | |
run: yarn test | |
bygg-yarn-for-dependabot: | |
name: Bygg yarn | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: "read" | |
id-token: "write" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
registry-url: "https://npm.pkg.github.com" | |
- name: Yarn install | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_RELEASE: ${{ github.sha }} | |
BASE_PATH: ${{ env.BASE_PATH }} | |
run: | | |
yarn --prefer-offline --frozen-lockfile | |
yarn build | |
bygg: | |
name: Bygg app/image og push til GitHub | |
if: ${{ github.actor != 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: "read" | |
id-token: "write" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
registry-url: "https://npm.pkg.github.com" | |
- name: Yarn install | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_RELEASE: ${{ github.sha }} | |
BASE_PATH: ${{ env.BASE_PATH }} | |
run: | | |
yarn --prefer-offline --frozen-lockfile | |
yarn build | |
- uses: nais/docker-build-push@v0 | |
id: docker-push | |
with: | |
team: teamfamilie | |
push_image: true | |
dockerfile: Dockerfile | |
docker_context: . | |
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }} | |
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} | |
outputs: | |
image: ${{ steps.docker-push.outputs.image }} | |
deploy: | |
name: Deploy til dev-gcp | |
needs: | |
- bygg | |
- test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: "read" | |
id-token: "write" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Deploy til dev-gcp team namespace | |
uses: nais/deploy/actions/deploy@v2 | |
env: | |
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }} | |
CLUSTER: dev-gcp | |
RESOURCE: build_n_deploy/naiserator/naiserator_dev.yaml | |
VAR: base_path=${{ env.BASE_PATH }} | |
IMAGE: ${{ needs.bygg.outputs.image }} |