steps: - name: build image: myhugo:latest when: event: push branch: master commands: - rm -rf /publish/* - ln -s /publish publish - hugo volumes: - /var/www/hugo.site.tesses.net:/publish