Skip to content

Commit

Permalink
Fix docker compose order
Browse files Browse the repository at this point in the history
  • Loading branch information
Darwinkel committed Feb 26, 2024
1 parent 5b7ace3 commit dfba4f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion update.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash

docker compose pull

CONTAINER_IMAGE_ID=$(docker compose images -q | awk '{print "sha256:"$1}')
LATEST_IMAGE_ID=$(docker inspect --format='{{.Id}}' ghcr.io/darwinkel/shepardtts:main)

if [ "$LATEST_IMAGE_ID" != "$CONTAINER_IMAGE_ID" ]
then
docker compose pull
docker compose stop
docker compose down
docker compose up -d
Expand Down

0 comments on commit dfba4f5

Please sign in to comment.