-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lagt til flere tester og fikset issue med deserializer for InternTilstand
- Loading branch information
1 parent
ad884c6
commit be2a0f7
Showing
5 changed files
with
270 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
name: Bekreftelse Utgang | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev/* | ||
paths: | ||
- 'apps/bekreftelse-utgang/**' | ||
- 'lib/**' | ||
- 'domain/**' | ||
- '.github/workflows/bekreftelse-utgang.yaml' | ||
- 'gradle/**' | ||
- 'settings.gradle.kts' | ||
- 'gradle.properties' | ||
- 'gradlew' | ||
- 'gradlew.bat' | ||
|
||
env: | ||
MODULE: bekreftelse-utgang | ||
IMAGE: europe-north1-docker.pkg.dev/${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}/paw/paw-arbeidssoekerregisteret-bekreftelse-utgang | ||
jobs: | ||
build: | ||
name: Build | ||
permissions: | ||
contents: read | ||
id-token: write | ||
packages: write | ||
runs-on: ubuntu-latest | ||
outputs: | ||
image: ${{ steps.docker-build-push.outputs.image }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 21 | ||
distribution: temurin | ||
cache: gradle | ||
- name: Set version | ||
run: echo "VERSION=$(date +'%y.%m.%d').${{ github.run_number }}-${{ github.run_attempt }}" >> $GITHUB_ENV | ||
- name: Login GAR | ||
uses: nais/login@v0 | ||
with: | ||
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }} | ||
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }} | ||
team: paw | ||
- name: Build and push image with Gradle | ||
id: docker-build-push | ||
working-directory: ./ | ||
env: | ||
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
echo "image=${{ env.IMAGE }}:${{ env.VERSION }}" >> $GITHUB_OUTPUT | ||
echo -Pversion=${{ env.VERSION }} -Pimage=${{ env.IMAGE }} :apps:${{ env.MODULE }}:build :apps:${{ env.MODULE }}:jib | ||
./gradlew -Pversion=${{ env.VERSION }} -Pimage=${{ env.IMAGE }} :apps:${{ env.MODULE }}:build :apps:${{ env.MODULE }}:jib | ||
echo "DIGEST=$(cat ./apps/${{ env.MODULE }}/build/jib-image.digest)" >> $GITHUB_ENV | ||
- name: Attest and sign image | ||
uses: nais/[email protected] | ||
env: | ||
TRIVY_JAVA_DB_REPOSITORY: "public.ecr.aws/aquasecurity/trivy-java-db:1" | ||
with: | ||
image_ref: ${{ env.IMAGE }}@${{ env.DIGEST }} | ||
|
||
deploy-dev: | ||
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/dev') | ||
name: Deploy to dev-gcp | ||
needs: | ||
- build | ||
permissions: | ||
contents: read | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Deploy to GCP | ||
uses: nais/deploy/actions/deploy@v2 | ||
env: | ||
CLUSTER: dev-gcp | ||
RESOURCE: ./apps/${{ env.MODULE }}/nais/nais-dev.yaml | ||
VAR: image=${{ needs.build.outputs.image }} | ||
|
||
# deploy-prod: | ||
# if: github.ref == 'refs/heads/main' | ||
# name: Deploy to prod-gcp | ||
# needs: | ||
# - build | ||
# - deploy-dev | ||
# permissions: | ||
# contents: read | ||
# id-token: write | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v4 | ||
# - name: Deploy to GCP | ||
# uses: nais/deploy/actions/deploy@v2 | ||
# env: | ||
# TEAM: paw | ||
# CLUSTER: prod-gcp | ||
# RESOURCE: ./apps/${{ env.MODULE }}/nais/nais-prod.yaml | ||
# VAR: image=${{ needs.build.outputs.image }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# paw-arbeidssoekerregisteret-bekreftelse-utgang | ||
|
||
## Beskrivelse | ||
Denne appen er ansvarlig for avslutting av arbeidssøkerperioder når bekreftelse grace periode er utløpt | ||
eller bruker svarer "nei" på bekreftelse spørsmål "Vil du fortsatt være registrert som arbeidssøker?". | ||
|
||
Appen lytter på events fra topic `paw.arbeidssoker-bekreftelse-hendelseslogg-beta-v2` | ||
og sender `Avsluttet` hendelser til `paw.arbeidssoker-hendelseslogg-v1` for `RegisterGracePeriodeUtloept`- og `BaOmAaAvsluttePeriode`-hendelser. |
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
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
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