Skip to content

Commit

Permalink
configuring
Browse files Browse the repository at this point in the history
  • Loading branch information
XyL1GaN4eG committed Jul 17, 2024
1 parent fbd7f32 commit 0eed010
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ jobs:
echo "DB_URL=${{ secrets.DB_URL }}" >> $GITHUB_ENV
echo "DB_USERNAME=${{ secrets.DB_USERNAME }}" >> $GITHUB_ENV
echo "DB_PASSWORD=${{ secrets.DB_PASSWORD }}" >> $GITHUB_ENV
echo "RABBITMQ_HOST=${{ secrets.RABBITMQ_HOST }}" >> $GITHUB_ENV
echo "RABBITMQ_PORT=${{ secrets.RABBITMQ_PORT }}" >> $GITHUB_ENV
echo "RABBITMQ_USERNAME=${{ secrets.RABBITMQ_USERNAME }}" >> $GITHUB_ENV
echo "RABBITMQ_PASSWORD=${{ secrets.RABBITMQ_PASSWORD }}" >> $GITHUB_ENV
- name: Debug environment variables
run: printenv | grep DB
run: printenv | grep -E 'DB|RABBITMQ'

- name: Build userService
run: mvn -e -B package --file userService/pom.xml
Expand Down
12 changes: 6 additions & 6 deletions userService/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ spring:
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect

ddl-auto: update
show-sql: true
hibernate:
ddl-auto: update
rabbitmq:
host: localhost
port: 5672
username: guest
password: guest
host: ${RABBITMQ_HOST}
port: ${RABBITMQ_PORT}
username: ${RABBITMQ_USERNAME}
password: ${RABBITMQ_PASSWORD}

0 comments on commit 0eed010

Please sign in to comment.