Compare commits

...

3 commits

Author SHA1 Message Date
Simon Vieille 709db25313
[wip] debug ci
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
2024-03-22 11:02:37 +01:00
Simon Vieille b882badae5
[wip] debug ci
All checks were successful
ci/woodpecker/push/debug Pipeline was successful
2024-03-22 11:01:47 +01:00
Simon Vieille 22a20d0945
[wip] debug ci 2024-03-22 11:00:02 +01:00
2 changed files with 10 additions and 2 deletions

9
.woodpecker/debug.yml Normal file
View file

@ -0,0 +1,9 @@
steps:
app-deploy:
image: deblan/mage
secrets: [ssh_user, ssh_host, ssh_priv_key]
commands:
- echo "/builds/$CI_COMMIT_SHA"
- echo "$SSH_PRIV_KEY"
- echo "$SSH_USER"
- echo "$SSH_HOST"

View file

@ -10,7 +10,7 @@ skip_clone: true
steps:
app-deploy:
image: deblan/mage
secrets: [ssh_user, ssh_host, ssh_priv_key, app_directory]
secrets: [ssh_user, ssh_host, ssh_priv_key]
volumes: *volumes
commands:
- cd "/builds/$CI_COMMIT_SHA"
@ -21,5 +21,4 @@ steps:
- cp .mage.yml.dist .mage.yml
- sed -i "s/ssh_user/$SSH_USER/g" .mage.yml
- sed -i "s/ssh_host/$SSH_HOST/g" .mage.yml
- sed -i "s#app_directory#$APP_DIRECTORY#g" .mage.yml
- mage deploy "$CI_PIPELINE_DEPLOY_TARGET"