kind: pipeline type: docker name: build steps: - name: docker build and publish image: docker:dind volumes: - name: dockersock path: /var/run/docker.sock commands: - apk add make hugo git - make build publish when: branch: - master steps: - name: docker build image: docker:dind volumes: - name: dockersock path: /var/run/docker.sock commands: - apk add make hugo git - make build when: branch: exclude: - master volumes: - name: dockersock host: path: /var/run/docker.sock