deploy: wait a bit longer and only publish a new version if the workflow or the api code has changed
Parents:
150a90a1 file(s) changed
- .github/workflows/deploy.yml +4 -1
.github/workflows/deploy.yml
@@ -5,6 +5,9 @@ push:
5 5 branches:
6 6 - master # goes for production now, will become staging later on
7 7 - production
8 + paths:
9 + - 'api/**'
10 + - '.github/workflows/deploy.yml'
8 11
9 12 env:
10 13 REGISTRY: ghcr.io
@@ -79,6 +82,6 @@ sed -i "s/^IMAGE_TAG=.*/IMAGE_TAG=latest/" .env
79 82
80 83 docker compose up -d --no-deps --force-recreate api
81 84
82 - sleep 3
85 + sleep 5
83 86 # Dump the logs for a while
84 87 docker compose logs --tail=50 api