Skip to content

Commit

Permalink
feature: add dockerfiles for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoesle committed Apr 9, 2024
1 parent 3dfdc58 commit 9b7190f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/workflow-build-and-release-services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,20 @@ jobs:
PGP_PRIVATE_KEY: ${{ secrets.PGP_PRIVATE_KEY }}
PGP_PRIVATE_KEY_SECRET: ${{ secrets.PGP_PRIVATE_KEY_SECRET }}

- name: DOCKER / BUILD & PUBLISH / miragon/miranum-camunda7-engine-service
# deployment examples
- name: DOCKER / BUILD & PUBLISH / miragon/miranum-deployment-embedded-example
if: inputs.docker-release == true
uses: docker/build-push-action@v5
with:
context: ./platform/services/miragon/camunda7-engine-service/.
context: ./deployment/examples/embedded-example/.
push: true
tags: miragon/miranum-camunda7-engine-service:${{ env.RELEASE_VERSION }}
tags: miragon/miranum-deployment-embedded-example:${{ env.RELEASE_VERSION }}
platforms: linux/amd64, linux/arm64/v8
- name: DOCKER / BUILD & PUBLISH / miragon/miranum-deployment-service
- name: DOCKER / BUILD & PUBLISH / miragon/miranum-deployment-rest-example
if: inputs.docker-release == true
uses: docker/build-push-action@v5
with:
context: ./platform/services/deployment-service/.
context: ./deployment/examples/rest-example/.
push: true
tags: miragon/miranum-deployment-service:${{ env.RELEASE_VERSION }}
tags: miragon/miranum-deployment-rest-example:${{ env.RELEASE_VERSION }}
platforms: linux/amd64, linux/arm64/v8
9 changes: 9 additions & 0 deletions deployment/examples/embedded-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM amazoncorretto:17-alpine

EXPOSE 8080

RUN mkdir /app

COPY ./target/*.jar /app/spring-boot-application.jar

CMD ["java","-jar","/app/spring-boot-application.jar"]
9 changes: 9 additions & 0 deletions deployment/examples/rest-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM amazoncorretto:17-alpine

EXPOSE 8080

RUN mkdir /app

COPY ./target/*.jar /app/spring-boot-application.jar

CMD ["java","-jar","/app/spring-boot-application.jar"]

0 comments on commit 9b7190f

Please sign in to comment.