diff --git a/.github/workflows/staging-deploy.yml b/.github/workflows/staging-deploy.yml index 235753c..d43c230 100644 --- a/.github/workflows/staging-deploy.yml +++ b/.github/workflows/staging-deploy.yml @@ -6,30 +6,7 @@ on: - staging jobs: - publish: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Login to GitHub Container Registry - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - push: true - tags: ghcr.io/generalmagicio/pw-backend:staging - deploy: - needs: publish runs-on: ubuntu-latest steps: - name: SSH and Redeploy Staging @@ -43,4 +20,6 @@ jobs: cd rpgf4-pw-backend docker-compose down -v docker image prune -a --force - docker-compose up -d + git checkout staging + git pull origin staging + docker-compose up -d --build diff --git a/docker-compose.yml b/docker-compose.yml index a0d7a9d..479bff5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,8 @@ version: '3' services: pw-backend: - image: ghcr.io/GeneralMagicio/pw-backend:staging + build: + context: . container_name: rpgf4-pw-backend restart: always ports: