Skip to content

Commit

Permalink
please
Browse files Browse the repository at this point in the history
  • Loading branch information
Aayush-Agnihotri committed Oct 26, 2024
1 parent 981db9b commit 9a94136
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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

0 comments on commit 9a94136

Please sign in to comment.