Skip to content

Commit

Permalink
Use <<\ ssh mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Jan 8, 2024
1 parent 636e8fa commit e68e428
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ jobs:
- name: Deploy
run: |
ssh remote <<EOF
ssh remote <<\EOF
set -e
export IMAGE_FILENAME=$(basename "${{ env.IMAGE_PATH }}")
image_filename=$(basename "${{ env.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 < "$image_filename"
echo "Fetching latest changes from the git repository"
cd "$TAG"
Expand Down

0 comments on commit e68e428

Please sign in to comment.