Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
commel authored Apr 17, 2024
1 parent f324dc6 commit 6ee00ac
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
image: postgres
# Provide the password for postgres
env:
POSTGRES_DB: holarse
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
Expand All @@ -40,14 +41,16 @@ jobs:
with:
java-version: '17'
cache: maven
distribution: 'temurin'
- name: Build and Test HolaCMS
run: mvn package
- name: Deploy Database
env:
# The hostname used to communicate with the PostgreSQL service container
POSTGRES_HOST: postgres
# The default PostgreSQL port
POSTGRES_PORT: 5432
run: echo "${POSTGRES_HOST}:${POSTGRES_PORT}"

DB_HOST: postgres
DB_NAME: holarse
DB_USER: postgres
DB_PASS: geheim
DB_PORT: 5432
run: "PGPASSWORD=${DB_PASSWORD} /usr/bin/psql -h ${DB_HOST} -p ${DB_PORT} -U ${DB_USER} -d ${DB_NAME}"

0 comments on commit 6ee00ac

Please sign in to comment.