This commit is contained in:
@@ -52,11 +52,8 @@ jobs:
|
|||||||
echo "REDIS_URL=${{ secrets.REDIS_URL }}" >> .env.remote
|
echo "REDIS_URL=${{ secrets.REDIS_URL }}" >> .env.remote
|
||||||
echo "REDIS_KEY_PREFIX=${{ secrets.REDIS_KEY_PREFIX }}" >> .env.remote
|
echo "REDIS_KEY_PREFIX=${{ secrets.REDIS_KEY_PREFIX }}" >> .env.remote
|
||||||
|
|
||||||
# Create remote directory if it doesn't exist
|
# Create remote directory and .env file in a single SSH session to minimize connection overhead
|
||||||
ssh -o StrictHostKeyChecking=accept-new -i ~/.ssh/id_ed25519 deploy@alpha.mintel.me "mkdir -p /home/deploy/sites/klz-cables.com"
|
ssh -o StrictHostKeyChecking=accept-new -i ~/.ssh/id_ed25519 deploy@alpha.mintel.me "mkdir -p /home/deploy/sites/klz-cables.com && cat > /home/deploy/sites/klz-cables.com/.env" < .env.remote
|
||||||
|
|
||||||
# Copy .env file to remote server using cat over ssh to bypass scp/sftp issues
|
|
||||||
cat .env.remote | ssh -o StrictHostKeyChecking=accept-new -i ~/.ssh/id_ed25519 deploy@alpha.mintel.me "cat > /home/deploy/sites/klz-cables.com/.env"
|
|
||||||
|
|
||||||
ssh -o StrictHostKeyChecking=accept-new -i ~/.ssh/id_ed25519 deploy@alpha.mintel.me << 'EOF'
|
ssh -o StrictHostKeyChecking=accept-new -i ~/.ssh/id_ed25519 deploy@alpha.mintel.me << 'EOF'
|
||||||
docker login registry.infra.mintel.me \
|
docker login registry.infra.mintel.me \
|
||||||
|
|||||||
Reference in New Issue
Block a user