diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index bcb2470c..3a2bfa37 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -6,6 +6,7 @@ on: env: "IMAGE_EBMS": "ghcr.io/${{ github.repository }}/ebms-provider:${{ github.sha }}" "IMAGE_CPA": "ghcr.io/${{ github.repository }}/cpa-repo:${{ github.sha }}" + "IMAGE_PAYLOAD": "ghcr.io/${{ github.repository }}/payload-processor:${{ github.sha }}" jobs: build: name: "build" @@ -49,6 +50,8 @@ jobs: run: "docker build processor --pull --tag ${IMAGE_EBMS} -f Dockerfile && docker push ${IMAGE_EBMS}" - name: "Build and push cpa-repo Docker image" run: "docker build cpa-repo --pull --tag ${IMAGE_CPA} -f Dockerfile && docker push ${IMAGE_CPA}" + - name: "Build and push payload-processor Docker image" + run: "docker build payload-processor --pull --tag ${IMAGE_CPA} -f Dockerfile && docker push ${IMAGE_PAYLOAD}" deploy-processor: name: "Deploy ebms provider to dev" needs: "build" @@ -75,6 +78,19 @@ jobs: CLUSTER: "dev-gcp" RESOURCE: ".nais/cpa-repo-dev.yaml" IMAGE: ${{env.IMAGE_CPA}} + deploy-payload-processor: + name: "Deploy payload-processor to dev" + needs: "build" + runs-on: "ubuntu-20.04" + steps: + - uses: "actions/checkout@v3" + - name: "Deploy to DEV" + uses: "nais/deploy/actions/deploy@v1" + env: + APIKEY: "${{ secrets.NAIS_DEPLOY_APIKEY }}" + CLUSTER: "dev-gcp" + RESOURCE: ".nais/payload-processor-dev.yaml" + IMAGE: ${{env.IMAGE_PAYLOAD}} # "deployAppToDev": # name: "Deploy app to dev" # needs: "build" diff --git a/payload-processor/build.gradle.kts b/payload-processor/build.gradle.kts index 1573097c..13d98520 100644 --- a/payload-processor/build.gradle.kts +++ b/payload-processor/build.gradle.kts @@ -13,12 +13,19 @@ repositories { mavenCentral() } -tasks.register("wrapper") { - gradleVersion="8.1.1" -} -tasks.test { - useJUnitPlatform() + +tasks { + + register("wrapper") { + gradleVersion="8.1.1" + } + shadowJar { + archiveFileName.set("app.jar") + } + test { + useJUnitPlatform() + } } dependencies {