Skip to content

Commit f4331b6

Browse files
Added stric image tags
1 parent 01bf2f1 commit f4331b6

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/deploy-app.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
deploy:
1111
env:
1212
DOCKERHUB_USER : ${{ vars.DOCKERHUB_USER }}
13+
DOCKER_TAG: ${{ github.sha}}
1314

1415
runs-on: self-hosted
1516

@@ -21,4 +22,4 @@ jobs:
2122
uses: docker/setup-compose-action@v2
2223

2324
- name: deploy with docker compose
24-
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22

33
web:
4-
image: ${DOCKERHUB_USER}/github-actions-app:latest
4+
image: ${DOCKERHUB_USER}/github-actions-app:${DOCKER_TAG}
55
ports:
66
- "80:80"

0 commit comments

Comments
 (0)