--- ################ # Build & Test # ################ kind: pipeline name: run_tests steps: # Run tests against Python/Flask engine backend (with pytest) - name: build and push image: klakegg/hugo:debian environment: sshkey: from_secret: key commands: # Install dependencies - 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 $sshkey > ~/.ssh/ed25519 - rsync -avz --delete public/ root@box.unbl.ink:/home/user-data/www/unbl.ink/ volumes: - name: docker host: path: /var/run/docker.sock - name: pip_cache host: path: /tmp/cache/drone/pip