kind: pipeline name: amd64 type: docker steps: - name: test image: golang:alpine volumes: - name: build path: /build commands: - apk --no-cache add git gcc musl-dev - go test ./... - name: build image: golang:alpine volumes: - name: build path: /build commands: - apk --no-cache add git gcc musl-dev - go build -o /build/godns - name: docker image: plugins/docker volumes: - name: build path: /build settings: username: from_secret: docker_username password: from_secret: docker_password repo: registry.meow.tf/joker/godns registry: registry.meow.tf tags: - amd64-latest when: branch: - master volumes: - name: build temp: {}