We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01bf2f1 commit f4331b6Copy full SHA for f4331b6
2 files changed
.github/workflows/deploy-app.yml
@@ -10,6 +10,7 @@ jobs:
10
deploy:
11
env:
12
DOCKERHUB_USER : ${{ vars.DOCKERHUB_USER }}
13
+ DOCKER_TAG: ${{ github.sha}}
14
15
runs-on: self-hosted
16
@@ -21,4 +22,4 @@ jobs:
21
22
uses: docker/setup-compose-action@v2
23
24
- name: deploy with docker compose
- run: docker compose down && docker compose up -d --build --force-recreate
25
+ run: docker compose down && docker compose up -d --build --force-recreate --pull always
docker-compose.yml
@@ -1,6 +1,6 @@
1
services:
2
3
web:
4
- image: ${DOCKERHUB_USER}/github-actions-app:latest
+ image: ${DOCKERHUB_USER}/github-actions-app:${DOCKER_TAG}
5
ports:
6
- "80:80"
0 commit comments