diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 197ef88b..3fd50a0b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,7 +66,6 @@ jobs: workdir: api buildargs: API_URI docker-push-webapp: - name: Push webapp Docker Image to GitHub Packages runs-on: ubuntu-latest permissions: contents: read @@ -110,4 +109,7 @@ jobs: echo "DATABASE_PASSWORD=${{ secrets.DATABASE_PASSWORD }}" >> .env echo "JWT_SECRET=${{ secrets.JWT_SECRET }}" >> .env sudo docker compose down + sudo docker compose pull sudo docker compose --profile prod up -d + cd ../ + rm -r wiq_en2b --force diff --git a/docker-compose.yml b/docker-compose.yml index 7843efc5..7bf758fe 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,14 +31,12 @@ services: webapp: container_name: webapp-${teamname:-defaultASW} - image: ghcr.io/arquisoft/wiq_en2b/webapp:latest + image: webapp:latest profiles: [ "dev", "prod" ] build: context: ./webapp args: API_URI: http://${API_URI}:8080 - networks: - - mynetwork ports: - "3000:3000"