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