ok this time trust, surely it will work now
This commit is contained in:
1 parent
da635fc773
commit
cbccacd023
1 file changed
+8
-8
@@ -59,11 +59,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
mkdir -p $HOME/.ssh
|
||||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/deploy_key
|
echo "$SSH_PRIVATE_KEY" > $HOME/.ssh/deploy_key
|
||||||
chmod 600 ~/.ssh/deploy_key
|
chmod 600 $HOME/.ssh/deploy_key
|
||||||
|
|
||||||
SSH_CMD="ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no itzmineydev@localhost"
|
SSH_CMD="ssh -i $HOME/.ssh/deploy_key -o StrictHostKeyChecking=no itzmineydev@localhost"
|
||||||
|
|
||||||
RELEASE_ID="web-$(date -u +%Y%m%d-%H%M%S)"
|
RELEASE_ID="web-$(date -u +%Y%m%d-%H%M%S)"
|
||||||
TARGET_DIR="$RELEASES_DIR/$RELEASE_ID"
|
TARGET_DIR="$RELEASES_DIR/$RELEASE_ID"
|
||||||
@@ -82,11 +82,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
mkdir -p ~/.ssh
|
mkdir -p $HOME/.ssh
|
||||||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/deploy_key
|
echo "$SSH_PRIVATE_KEY" > $HOME/.ssh/deploy_key
|
||||||
chmod 600 ~/.ssh/deploy_key
|
chmod 600 $HOME/.ssh/deploy_key
|
||||||
|
|
||||||
ssh -i ~/.ssh/deploy_key -o StrictHostKeyChecking=no itzmineydev@localhost << 'EOF'
|
ssh -i $HOME/.ssh/deploy_key -o StrictHostKeyChecking=no itzmineydev@localhost << 'EOF'
|
||||||
set -eux
|
set -eux
|
||||||
RELEASES_DIR="/srv/itzmineydev/releases"
|
RELEASES_DIR="/srv/itzmineydev/releases"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user