diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ee06885..0232c95 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/userService/src/main/resources/application.yml b/userService/src/main/resources/application.yml index d7838b3..6f16a26 100644 --- a/userService/src/main/resources/application.yml +++ b/userService/src/main/resources/application.yml @@ -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 \ No newline at end of file + host: ${RABBITMQ_HOST} + port: ${RABBITMQ_PORT} + username: ${RABBITMQ_USERNAME} + password: ${RABBITMQ_PASSWORD}