Decode deploy key from base64 in pipeline
This commit is contained in:
parent
57b9b3a567
commit
3db9dd9326
@ -36,7 +36,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- apk add --no-cache openssh-client
|
- apk add --no-cache openssh-client
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- printf '%s\n' "$STAGING_DEPLOY_KEY" > ~/.ssh/id_ed25519
|
- echo "$STAGING_DEPLOY_KEY" | base64 -d > ~/.ssh/id_ed25519
|
||||||
- chmod 600 ~/.ssh/id_ed25519
|
- chmod 600 ~/.ssh/id_ed25519
|
||||||
- ssh-keyscan -H staging.rebreak.org > ~/.ssh/known_hosts 2>/dev/null
|
- ssh-keyscan -H staging.rebreak.org > ~/.ssh/known_hosts 2>/dev/null
|
||||||
- tar czf backend-output.tar.gz -C backend/.output .
|
- tar czf backend-output.tar.gz -C backend/.output .
|
||||||
@ -53,7 +53,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- apk add --no-cache openssh-client
|
- apk add --no-cache openssh-client
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- printf '%s\n' "$STAGING_DEPLOY_KEY" > ~/.ssh/id_ed25519
|
- echo "$STAGING_DEPLOY_KEY" | base64 -d > ~/.ssh/id_ed25519
|
||||||
- chmod 600 ~/.ssh/id_ed25519
|
- chmod 600 ~/.ssh/id_ed25519
|
||||||
- ssh-keyscan -H admin.staging.rebreak.org > ~/.ssh/known_hosts 2>/dev/null
|
- ssh-keyscan -H admin.staging.rebreak.org > ~/.ssh/known_hosts 2>/dev/null
|
||||||
- tar czf admin-output.tar.gz -C apps/admin/.output .
|
- tar czf admin-output.tar.gz -C apps/admin/.output .
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user