fix: quoted variables in publish step
ci/woodpecker/push/woodpecker Pipeline failed Details

Tomáš Mládek 2023-08-12 19:39:05 +02:00
parent 0cb9651aba
commit e52824ce1c
1 changed files with 5 additions and 15 deletions

View File

@ -1,14 +1,4 @@
pipeline:
debug:publish-nightly:
image: albedo.lan:5000/upend-deploy:latest
pull: true
commands:
- echo "$GPG_SIGN_KEY" | wc -l
- echo "$SSH_CONFIG"
- echo "$GPG_SIGN_KEY" | gpg --import
- "false"
secrets: [gpg_sign_key, ssh_config, ssh_upload_key, ssh_known_hosts]
prepare:cache:frontend:
group: init
image: albedo.lan:5000/upend-node:latest
@ -133,13 +123,13 @@ pipeline:
image: albedo.lan:5000/upend-deploy:latest
pull: true
commands:
- echo -e $GPG_SIGN_KEY | gpg --import
- gpg --clear-sign "*.AppImage"
- echo "$GPG_SIGN_KEY" | gpg --import
- mkdir -p $HOME/.ssh
- echo -e $SSH_CONFIG > $HOME/.ssh/config
- echo -e $SSH_UPLOAD_KEY > $HOME/.ssh/id_rsa
- echo -e $SSH_KNOWN_HOSTS > $HOME/.ssh/known_hosts
- echo "$SSH_CONFIG" > $HOME/.ssh/config
- echo "$SSH_UPLOAD_KEY" > $HOME/.ssh/id_rsa
- echo "$SSH_KNOWN_HOSTS" > $HOME/.ssh/known_hosts
- chmod 600 $HOME/.ssh/*
- gpg --clear-sign "*.AppImage"
- scp "*.AppImage" "*.asc" mainsite:releases
secrets: [gpg_sign_key, ssh_config, ssh_upload_key, ssh_known_hosts]