@ -30,17 +30,10 @@ steps:
|
||||
image: alpine/git
|
||||
environment:
|
||||
MY_VAR1: test-value
|
||||
MY_VAR2:
|
||||
from_secret: gitea-deploy-key
|
||||
MY_VAR3:
|
||||
from_secret: gitea-known-host
|
||||
commands:
|
||||
- mkdir -p ~/.ssh
|
||||
- echo "$${MY_VAR3}" >> ~/.ssh/known_hosts
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
- echo "$${MY_VAR2}" > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- git config --global user.name "woodpecker[bot]"
|
||||
- git config --global user.email "woodpecker@marcin00.pl"
|
||||
- git clone "${MY_VAR1}" --branch woodpecker-deploy
|
||||
- echo $MY_VAR1
|
||||
- git clone ${MY_VAR1} --branch woodpecker-deploy
|
||||
- cd user-microservice-deploy
|
||||
|
Reference in New Issue
Block a user