mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-04-04 17:11:32 +08:00
Update secrets
This commit is contained in:
parent
de47b1ea4b
commit
a8936eb46e
1 changed files with 3 additions and 3 deletions
|
@ -6,8 +6,8 @@ steps:
|
|||
from_secret: SSH_HOST
|
||||
PROJECT_DIRECTORY:
|
||||
from_secret: PROJECT_DIRECTORY
|
||||
WOODPECKER_SSH_KEY:
|
||||
from_secret: WOODPECKER_SSH_KEY
|
||||
SSH_KEY:
|
||||
from_secret: SSH_KEY
|
||||
REGISTRY_IMAGE_TAG:
|
||||
from_secret: REGISTRY_IMAGE_TAG
|
||||
DOCKER_VOLUME_DB:
|
||||
|
@ -15,7 +15,7 @@ steps:
|
|||
commands:
|
||||
- apk add openssh
|
||||
- mkdir -p /root/.ssh/
|
||||
- echo "$WOODPECKER_SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa
|
||||
- echo "$SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa
|
||||
- chmod 600 /root/.ssh/id_rsa
|
||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config
|
||||
- ssh "$SSH_HOST" "
|
||||
|
|
Loading…
Add table
Reference in a new issue