Skip to content

Commit

Permalink
Fix SC issues, docker load from file instead of stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Jan 8, 2024
1 parent fc30bd5 commit 1b749fc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,25 @@ jobs:
run: |
ssh remote <<EOF
set -e
image_filename=$(basename $IMAGE_PATH)
image_filename=$(basename "$IMAGE_PATH")
function cleanup {
echo "Cleaning up"
rm -f $image_filename
rm -f "$image_filename"
}
trap cleanup EXIT
echo "Loading Docker image"
docker load < $image_filename
docker load --input "$image_filename"
echo "Fetching latest changes from the git repository"
cd $TAG
git fetch origin $TAG
git checkout $TAG
git reset --hard origin/$TAG
cd "$TAG"
git fetch origin "$TAG"
git checkout "$TAG"
git reset --hard "origin/$TAG"
echo "Restarting containers"
export TAG=$TAG
docker compose --env-file envs/compose/$TAG.env up -d
docker compose --env-file "envs/compose/$TAG.env" up -d
EOF

0 comments on commit 1b749fc

Please sign in to comment.