-
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.
Skall for app for aggregering av opplysninger om arbeidssøker
- Loading branch information
1 parent
9423699
commit 79bb31b
Showing
56 changed files
with
1,640 additions
and
27 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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
name: Api Start stopp | ||
on: | ||
push: | ||
paths: | ||
- 'apps/api-start-stopp-perioder/**' | ||
- 'domain/**' | ||
- 'lib/**' | ||
- '.github/workflows/api-start-stopp.yml' | ||
- 'gradle/**' | ||
- 'settings.gradle.kts' | ||
- 'gradle.properties' | ||
- 'gradlew' | ||
push: | ||
branches: | ||
- main | ||
- dev/* | ||
paths: | ||
- 'apps/api-start-stopp-perioder/**' | ||
- 'domain/**' | ||
- 'lib/**' | ||
- '.github/workflows/api-start-stopp.yml' | ||
- 'gradle/**' | ||
- 'settings.gradle.kts' | ||
- 'gradle.properties' | ||
- 'gradlew' | ||
|
||
env: | ||
IMAGE: europe-north1-docker.pkg.dev/${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}/paw/paw-arbeidssokerregisteret-api-inngang | ||
|
@@ -50,7 +53,9 @@ jobs: | |
uses: nais/[email protected] | ||
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 - API Start Stopp | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
@@ -64,10 +69,11 @@ jobs: | |
CLUSTER: dev-gcp | ||
RESOURCE: apps/api-start-stopp-perioder/nais/nais-dev.yaml | ||
VAR: image=${{ needs.build.outputs.image }} | ||
|
||
deploy-prod: | ||
if: github.ref == 'refs/heads/main' | ||
name: Deploy to prod-gcp - API Start Stopp | ||
needs: [build, deploy-dev] | ||
needs: [ build, deploy-dev ] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ name: Hendelseprosessor | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev/* | ||
paths: | ||
- 'apps/hendelseprosessor/**' | ||
- 'lib/**' | ||
|
@@ -11,6 +14,7 @@ on: | |
- 'settings.gradle.kts' | ||
- 'gradle.properties' | ||
- 'gradlew' | ||
|
||
env: | ||
IMAGE: europe-north1-docker.pkg.dev/${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}/paw/paw-arbeidssokerregisteret-event-prosessor | ||
jobs: | ||
|
@@ -51,7 +55,9 @@ jobs: | |
uses: nais/[email protected] | ||
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 | ||
runs-on: ubuntu-latest | ||
|
@@ -69,7 +75,7 @@ jobs: | |
deploy-prod: | ||
if: github.ref == 'refs/heads/main' | ||
name: Deploy to prod-gcp | ||
needs: [build, deploy-dev] | ||
needs: [ build, deploy-dev ] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
|
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,98 @@ | ||
name: Build, push, and deploy - paw-arbeidssoeker-opplysninger-aggregering | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev/* | ||
paths: | ||
- 'apps/opplysninger-aggregering/**' | ||
- 'lib/**' | ||
- 'domain/**' | ||
- '.github/workflows/opplysninger-aggregering.yaml' | ||
- 'gradle/**' | ||
- 'settings.gradle.kts' | ||
- 'gradle.properties' | ||
- 'gradlew' | ||
|
||
env: | ||
IMAGE: europe-north1-docker.pkg.dev/${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}/paw/paw-arbeidssoeker-opplysninger-aggregering | ||
jobs: | ||
build: | ||
name: Build and push Docker container | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
packages: write | ||
outputs: | ||
image: ${{ steps.docker-build-push.outputs.image }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 21 | ||
distribution: temurin | ||
cache: gradle | ||
- name: Specify module | ||
run: echo "MODULE=:apps:opplysninger-aggregering" >> $GITHUB_ENV | ||
- name: Specify 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 with Gradle | ||
id: docker-build-push | ||
working-directory: ./ | ||
run: | | ||
echo "image=${{ env.IMAGE }}:${{ env.VERSION }}" >> $GITHUB_OUTPUT | ||
./gradlew -Pversion=${{ env.VERSION }} -Pimage=${{ env.IMAGE }} ${{ env.MODULE }}:build ${{ env.MODULE }}:test ${{ env.MODULE }}:jib | ||
echo "DIGEST=$(cat ./apps/opplysninger-aggregering/build/jib-image.digest)" >> $GITHUB_ENV | ||
env: | ||
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Attest and sign | ||
uses: nais/[email protected] | ||
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 | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Deploy | ||
uses: nais/deploy/actions/deploy@v2 | ||
env: | ||
CLUSTER: dev-gcp | ||
RESOURCE: ./apps/opplysninger-aggregering/nais/nais-dev.yaml | ||
VAR: image=${{ needs.build.outputs.image }},kafka=nav-dev | ||
|
||
deploy-prod: | ||
if: github.ref == 'refs/heads/main' | ||
name: Deploy to prod-gcp | ||
needs: [build, deploy-dev] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Deploy | ||
uses: nais/deploy/actions/deploy@v2 | ||
env: | ||
TEAM: paw | ||
CLUSTER: prod-gcp | ||
RESOURCE: ./apps/opplysninger-aggregering/nais/nais-prod.yaml | ||
VAR: image=${{ needs.build.outputs.image }},kafka=nav-prod |
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 |
---|---|---|
|
@@ -2,6 +2,9 @@ name: Formidlingsgruppe - Utgang | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev/* | ||
paths: | ||
- 'apps/utgang-formidlingsgruppe/**' | ||
- 'lib/**' | ||
|
@@ -55,7 +58,9 @@ jobs: | |
uses: nais/[email protected] | ||
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 | ||
permissions: | ||
contents: read | ||
|
@@ -69,13 +74,14 @@ jobs: | |
CLUSTER: dev-gcp | ||
RESOURCE: apps/utgang-formidlingsgruppe/nais/nais-dev.yaml | ||
VAR: image=${{ needs.build.outputs.image }},kafka=nav-dev | ||
|
||
deploy-prod: | ||
if: github.ref == 'refs/heads/main' | ||
name: Deploy to prod-gcp | ||
permissions: | ||
contents: read | ||
id-token: write | ||
needs: [deploy-dev,build] | ||
needs: [ deploy-dev,build ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
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 |
---|---|---|
|
@@ -2,6 +2,9 @@ name: PDL - Utgang | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev/* | ||
paths: | ||
- 'apps/utgang-pdl/**' | ||
- '.github/workflows/utgang-pdl-deploy.yaml' | ||
|
@@ -55,7 +58,9 @@ jobs: | |
uses: nais/[email protected] | ||
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 | ||
permissions: | ||
contents: read | ||
|
@@ -69,6 +74,7 @@ jobs: | |
CLUSTER: dev-gcp | ||
RESOURCE: apps/utgang-pdl/nais/nais-dev.yaml | ||
VAR: image=${{ needs.build.outputs.image }},kafka=nav-dev | ||
|
||
deploy-prod: | ||
if: github.ref == 'refs/heads/main' | ||
name: Deploy to prod-gcp | ||
|
@@ -83,4 +89,4 @@ jobs: | |
env: | ||
CLUSTER: prod-gcp | ||
RESOURCE: apps/utgang-pdl/nais/nais-prod.yaml | ||
VAR: image=${{ needs.build.outputs.image }},kafka=nav-prod | ||
VAR: image=${{ needs.build.outputs.image }},kafka=nav-prod |
9 changes: 4 additions & 5 deletions
9
...up/src/main/kotlin/no/nav/paw/arbeidssoekerregisteret/backup/brukerstoette/HttpClients.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# PAW Arbeidssoeker Opplysninger Aggregering | ||
|
Oops, something went wrong.