[CI] Fix yaml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kleph 2020-10-27 17:53:28 +01:00
parent 75e14157b8
commit dccc03d3de

View file

@ -1,6 +1,15 @@
--- ---
kind: pipeline kind: pipeline
name: build name: build and deploy
deploy_commands_alias:
- &deploy_commands
commands:
- echo "deploy $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_DIR or $${DEPLOY_DIR}"
- echo "$DEPLOY_KEY" | sed 's/!/\n/g' > deploy_key
- chmod 0600 deploy_key
- ssh -i deploy_key -o StrictHostKeyChecking=no $DEPLOY_USER@$DEPLOY_HOST rm -Rf $${DEPLOY_DIR}/output/
- scp -r -i deploy_key -o StrictHostKeyChecking=no output $DEPLOY_USER@$DEPLOY_HOST:$${DEPLOY_DIR}
steps: steps:
- name: markdown lint - name: markdown lint
@ -13,19 +22,6 @@ steps:
commands: commands:
- pelican content -o output -s pelicanconf.py - pelican content -o output -s pelicanconf.py
---
deploy_commands:
- &deploy_commands
commands:
- echo "deploy $DEPLOY_USER@$DEPLOY_HOST"
- echo "$DEPLOY_KEY" | sed 's/!/\n/g' > deploy_key
- chmod 0600 deploy_key
- ssh -i deploy_key -o StrictHostKeyChecking=no $DEPLOY_USER@$DEPLOY_HOST rm -Rf ${DEPLOY_DIR}/output/
- scp -r -i deploy_key -o StrictHostKeyChecking=no output $DEPLOY_USER@$DEPLOY_HOST:${DEPLOY_DIR}
kind: pipeline
name: deploy
- name: deploy staging - name: deploy staging
image: kroniak/ssh-client image: kroniak/ssh-client
environment: environment: