Skip to content

Commit

Permalink
fix: build docker
Browse files Browse the repository at this point in the history
  • Loading branch information
vicheanath committed Feb 7, 2024
1 parent a8177af commit ccdac9e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build-push-docker.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Build and Publish Docker Image

Expand All @@ -13,9 +20,9 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
POSTGRES_DB: mini-pms
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
POSTGRES_DB: pms-db
ports:
- 5432:5432

Expand All @@ -41,7 +48,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/mini-pms
images: ${{ secrets.DOCKERHUB_USERNAME }}/core-banking
tags: |
type=ref,event=branch
type=ref,event=pr
Expand Down
2 changes: 1 addition & 1 deletion backend/pms/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:21-ea-slim
FROM openjdk:17-alpine

WORKDIR /app

Expand Down

0 comments on commit ccdac9e

Please sign in to comment.