dev1/.woodpecker.yml
Josh e155a06a9e
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
pipeline build v2 - b64 known hosts
2025-07-31 13:56:22 +00:00

25 lines
756 B
YAML

---
steps:
- name: deploy-staging
image: gcr.io/google.com/cloudsdktool/cloud-sdk:latest
commands:
- |
set -eu
mkdir -p ~/.ssh
# Inject known_hosts content directly
gcloud secrets versions access latest \
--secret="STAGING_KNOWN_HOSTS" \
--project="aptivaai-dev" > ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
# Inject SSH key directly
gcloud secrets versions access latest \
--secret="STAGING_KNOWN_HOSTS" \
--project="aptivaai-dev" | base64 -d > ~/.ssh/known_hosts
chmod 600 ~/.ssh/id_ed25519
# Sanity check: perform handshake
ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=yes jcoakley@10.128.0.12 hostname