Skip to content

Commit

Permalink
ci: checkout branch in deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Sep 23, 2024
1 parent 09d1112 commit 58164cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
port: ${{ secrets.PORT }}
script: |
cd ${GITHUB_REPOSITORY##*/}
git checkout ${GITHUB_REF##*/}
git pull
docker compose down
docker compose up -d
Expand All @@ -48,6 +49,7 @@ jobs:
port: ${{ secrets.PORT }}
script: |
cd ${GITHUB_REPOSITORY##*/}
git checkout ${GITHUB_REF##*/}
git pull
docker compose down
docker compose up -d

0 comments on commit 58164cc

Please sign in to comment.