Skip to content

Commit

Permalink
Payload processor github action
Browse files Browse the repository at this point in the history
  • Loading branch information
thburnett committed Sep 13, 2023
1 parent 061c79c commit fd6b8c5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down
17 changes: 12 additions & 5 deletions payload-processor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,19 @@ repositories {
mavenCentral()
}

tasks.register<Wrapper>("wrapper") {
gradleVersion="8.1.1"
}

tasks.test {
useJUnitPlatform()

tasks {

register<Wrapper>("wrapper") {
gradleVersion="8.1.1"
}
shadowJar {
archiveFileName.set("app.jar")
}
test {
useJUnitPlatform()
}
}

dependencies {
Expand Down

0 comments on commit fd6b8c5

Please sign in to comment.