Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
ADDED: integration with railway eureka
Browse files Browse the repository at this point in the history
  • Loading branch information
AleixMT committed Jan 17, 2024
1 parent 05b000a commit b44d6bf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,16 @@ jobs:
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/book-a-book-eureka:latest

deploy:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: deploy to railway
uses: bervProject/railway-deploy@main
with:
railway_token: ${{ secrets.RAILWAY_TOKEN }}
service: ${{ secrets.RAILWAY_ID_EUREKA }}
3 changes: 2 additions & 1 deletion src/main/resources/application-prod.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
eureka.instance.hostname=${EUREKA_HOST:localhost}
eureka.instance.hostname=${EUREKA_INTERNAL_DOMAIN:localhost}
server.port=${EUREKA_INTERNAL_PORT}

0 comments on commit b44d6bf

Please sign in to comment.