Skip to content

Add utfallshistorikk to OppsummeringAvKlage component #2667

Add utfallshistorikk to OppsummeringAvKlage component

Add utfallshistorikk to OppsummeringAvKlage component #2667

name: build-push-deploy-to-dev.yml
on:
push:
branches:
- '**'
workflow_dispatch:
env:
image: ghcr.io/${{ github.repository }}/su-se-framover:${{ github.sha }}
permissions: { }
jobs:
build-push-docker-image:
name: build-push-docker-image
runs-on: ubuntu-latest
outputs:
image: ${{ env.image }}
permissions:
packages: 'write'
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/[email protected]
with:
node-version: '20.x'
- name: install-deps-client-and-server
run: npm ci
- name: lint-and-typecheck
run: npm run lint-and-typecheck
- name: build-client
run: npm run build
- name: build-server
working-directory: server
run: npm run build
- name: create-sentry-release
if: (github.ref == 'refs/heads/master') || (github.event_name == 'workflow_dispatch')
run: npm run sentry-release
env:
SENTRY_AUTH_TOKEN: ${{secrets.SENTRY_AUTH_TOKEN}}
- name: docker-login
if: (github.ref == 'refs/heads/master') || (github.event_name == 'workflow_dispatch')
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: docker-build-push
if: (github.ref == 'refs/heads/master') || (github.event_name == 'workflow_dispatch')
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ env.image }}
deploy-to-dev-fss:
if: (github.ref == 'refs/heads/master') || (github.event_name == 'workflow_dispatch')
name: deploy-to-dev-fss
permissions:
contents: read
id-token: write
needs: build-push-docker-image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nais/deploy/actions/deploy@v2
env:
CLUSTER: dev-fss
RESOURCE: .nais/dev.yaml
VAR: image=${{ env.image }}
generate-draft-release:
if: (github.ref == 'refs/heads/master')
name: Generate/update draft release
runs-on: ubuntu-latest
permissions:
contents: 'write' # needed to create/edit releases
pull-requests: 'write' # needed to add labels to pull requests
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v6
#with:
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# config-name: my-config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}