Skip to content

Commit

Permalink
Adding the files and workflows for the teams server image
Browse files Browse the repository at this point in the history
  • Loading branch information
danakim committed Nov 14, 2023
1 parent c3cbb24 commit 02aec8f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .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 Down Expand Up @@ -35,4 +37,25 @@ jobs:
run: mvn --batch-mode deploy -DskipTests
env:
MAVEN_USERNAME: ${{ secrets.BUILD_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.BUILD_PASSWORD }}
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 teams server image
uses: docker/build-push-action@v4
with:
context: teams-server
file: teams-server/docker/Dockerfile
platforms: linux/amd64
push: true
tags: |
ghcr.io/openconext/openconext-manage/teams-server:${{ github.ref_name }}
3 changes: 3 additions & 0 deletions teams-server/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM eclipse-temurin:17-jdk-alpine
COPY target/*.jar app.jar
ENTRYPOINT ["java","-jar","/app.jar"]

0 comments on commit 02aec8f

Please sign in to comment.