From 9a94136a24d8bc5ab00c8f47fe45bc51c7caac8c Mon Sep 17 00:00:00 2001 From: Aayush Agnihotri Date: Sat, 26 Oct 2024 17:20:21 -0400 Subject: [PATCH] please --- .github/workflows/deploy.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a7c8be6..b106347 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,8 +2,11 @@ name: Docker Build, Push, and Deploy to prod for all-in-backend on: push: - branches: [main] - workflow_dispatch: + branches: + - main + pull_request: + branches: + - main jobs: path-context: @@ -20,7 +23,7 @@ jobs: password: ${{ secrets.DOCKER_PASSWORD }} - name: Get SHA id: vars - run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" + run: echo "::set-output name=sha_short::$(git rev-parse --short main)" - name: Docker Build & Push uses: docker/build-push-action@v2 with: @@ -43,4 +46,4 @@ jobs: docker stack rm thestack sleep 20s docker stack deploy -c docker-compose.yml thestack - docker system prune -a + docker system prune -a -f