kind: pipeline type: docker name: default steps: - name: static_check image: golang:latest commands: - go install honnef.co/go/tools/cmd/staticcheck@latest - staticcheck ./pkg/... volumes: - name: gopath path: /go - name: lint image: golang:latest commands: - go install golang.org/x/lint/golint@latest - golint -set_exit_status ./pkg/... volumes: - name: gopath path: /go - name: vet image: golang:latest commands: - go vet ./pkg/... volumes: - name: gopath path: /go - name: build_image image: plugins/docker commands: - sleep 5 - ./deploy/build_image.sh volumes: - name: docker-sock path: /var/run - name: push_image image: plugins/docker environment: DOCKER_USERNAME: from_secret: registry_username DOCKER_PASSWORD: from_secret: registry_password commands: - ./deploy/publish_image.sh volumes: - name: docker-sock path: /var/run services: - name: docker image: docker:dind privileged: true volumes: - name: docker-sock path: /var/run volumes: - name: gopath temp: {} - name: docker-sock temp: {}