Skip to content

Commit

Permalink
Corrected the Spring deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Takudzwamz committed Nov 20, 2023
1 parent 049ecfa commit 55ee4a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Docker login
run: |
echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin
- name: Deploy Spring Boot application
run: |
cd backend
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
echo "SPRING_APP_IMAGE=${SPRING_APP_IMAGE}" > .env
docker-compose down
docker-compose up -d
Expand Down

0 comments on commit 55ee4a5

Please sign in to comment.