Skip to content

Commit

Permalink
fix(actions): change restart flow
Browse files Browse the repository at this point in the history
Add pull_policy to app container
  • Loading branch information
PaulYakow committed Feb 9, 2024
1 parent c95d6a6 commit 4bd3820
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ jobs:
run: |
ssh -i deploy_key -p ${{ env.SSH_PORT }} -o StrictHostKeyChecking=no ${{ env.HOST }} "\
cd ${{ env.DEPLOY_DIRECTORY }} && \
docker compose down --rmi all && \
docker compose up -d"
docker compose down && \
docker compose up -d
docker image prune"
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ services:
app:
container_name: test-bot
image: ${IMAGE_ID}
pull_policy: always
restart: unless-stopped
environment:
TG_TOKEN: ${TG_TOKEN}
Expand Down

0 comments on commit 4bd3820

Please sign in to comment.