Skip to content

Commit

Permalink
Adding the files and workflows to build the images
Browse files Browse the repository at this point in the history
  • Loading branch information
danakim committed Nov 17, 2023
1 parent f725996 commit f6a9810
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:

jobs:
deployment:
permissions:
packages: write
environment: deploy
runs-on: ubuntu-latest

Expand All @@ -31,3 +33,43 @@ jobs:
env:
MAVEN_USERNAME: ${{ secrets.BUILD_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.BUILD_PASSWORD }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push the mujina common image
uses: docker/build-push-action@v4
with:
context: mujina-common
file: mujina-common/docker/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/openconext/openconext-mujina/mujina-common:${{ github.ref_name }}
- name: Build and push the mujina idp image
uses: docker/build-push-action@v4
with:
context: mujina-idp
file: mujina-idp/docker/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/openconext/openconext-mujina/mujina-idp:${{ github.ref_name }}
- name: Build and push the mujina sp image
uses: docker/build-push-action@v4
with:
context: mujina-sp
file: mujina-sp/docker/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/openconext/openconext-mujina/mujina-sp:${{ github.ref_name }}
3 changes: 3 additions & 0 deletions mujina-common/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM eclipse-temurin:11-jdk-alpine
COPY target/*.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
3 changes: 3 additions & 0 deletions mujina-idp/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM eclipse-temurin:11-jdk-alpine
COPY target/*.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
3 changes: 3 additions & 0 deletions mujina-sp/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM eclipse-temurin:11-jdk-alpine
COPY target/*.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]

0 comments on commit f6a9810

Please sign in to comment.