Skip to content

legg til hm-oppgave-sink inbound #106

legg til hm-oppgave-sink inbound

legg til hm-oppgave-sink inbound #106

Workflow file for this run

name: deploy-dev
on:
push:
branches:
- main
jobs:
build:
name: Build app, docker image and push docker image
permissions:
contents: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- uses: gradle/[email protected]
env:
TESTCONTAINERS_RYUK_DISABLED: true
with:
arguments: build
- name: Pre-deploy
uses: navikt/digihot-deploy/actions/pre-deploy@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push docker image
uses: nais/docker-build-push@v0
id: docker-build-push
with:
team: teamdigihot
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
tag: ${{ env.VERSION_TAG }}
- name: Deploy to dev-gcp
uses: nais/deploy/actions/deploy@v1
env:
APIKEY: ${{ secrets.NAIS_DEPLOY_APIKEY }}
CLUSTER: dev-gcp
RESOURCE: nais/nais-dev.yaml,nais/alerts-dev.yaml
IMAGE: ${{steps.docker-build-push.outputs.image}}
- name: post-deploy
if: github.ref == 'refs/heads/main'
uses: navikt/digihot-deploy/actions/post-deploy@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: draft release
if: github.ref == 'refs/heads/main'
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.VERSION_TAG }}
release_name: ${{ env.APPLICATION }} ${{ env.VERSION_TAG }}
body: ${{ env.CHANGE_LOG }}
draft: true
prerelease: false