From fc608e6a726b2975c638b4978d19d4c25fc156e2 Mon Sep 17 00:00:00 2001 From: Luis Eduardo Date: Mon, 25 Nov 2024 16:56:53 -0300 Subject: [PATCH] docker aws renew --- .github/workflows/prod.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 9fa077f..f92645a 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -23,8 +23,7 @@ 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 @@ -32,7 +31,7 @@ jobs: - 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