This commit is contained in:
@@ -52,8 +52,11 @@ 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
|
||||||
|
|
||||||
# Copy .env file to remote server
|
# Create remote directory if it doesn't exist
|
||||||
scp -O -o StrictHostKeyChecking=accept-new -i ~/.ssh/id_ed25519 .env.remote deploy@alpha.mintel.me:/home/deploy/sites/klz-cables.com/.env
|
ssh -o StrictHostKeyChecking=accept-new -i ~/.ssh/id_ed25519 deploy@alpha.mintel.me "mkdir -p /home/deploy/sites/klz-cables.com"
|
||||||
|
|
||||||
|
# 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