Skip to content

Commit

Permalink
docker aws renew
Browse files Browse the repository at this point in the history
  • Loading branch information
luiseduardoalencar committed Nov 25, 2024
1 parent 55ff0cf commit fc608e6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ jobs:
- name: Build Docker Image
run: docker build -t luiseduardoalencar/gestao_vagas .
- name: Publish Image
run: docker push luiseduardoalencar/gestao_vagas

run: docker push luiseduardoalencar/gestao_vagas
deploy:
needs: build
runs-on: self-hosted
steps:
- name: Pull image docker hub
run: docker pull luiseduardoalencar/gestao_vagas:latest
- name: remove container
run: docker rm -f
run: docker rm -f gestao_vagas
- name: Run docker container gestao-vagas
run: docker run -d -p 8080:8080 -e DATABASE_URL=${{secrets.DATABASE_URL}} -e DATABASE_PASSWORD=${{secrets.DATABASE_PASSWORD}} -e DATABASE_USERNAME=${{secrets.DATABASE_USERNAME}} --name gestao-vagas luiseduardoalencar/gestao_vagas

0 comments on commit fc608e6

Please sign in to comment.