1234567891011121314151617181920212223242526272829 |
- ---
- ################
- # Build & Test #
- ################
- kind: pipeline
- name: run_tests
- steps:
- # Run tests against Python/Flask engine backend (with pytest)
- - name: build and push
- image: klakegg/hugo:alpine
- environment:
- KEY:
- from_secret: key
- commands:
- # Install dependencies
- - apk add rsync openssh
- - wget https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_0.110.0_linux-amd64.tar.gz
- - tar zxvf hugo_0.110.0_linux-amd64.tar.gz
- # Start with a fresh database (which is already running as a service from Drone)
- - hugo
- - mkdir ~/.ssh/
- - echo "$KEY" > $HOME/.ssh/ed25519
- - rsync -avz --delete -e "ssh -i $HOME/.ssh/ed25519" public/ root@box.unbl.ink:/home/user-data/www/unbl.ink/
- volumes:
- - name: docker
- host:
- path: /var/run/docker.sock
|