kind: pipeline type: docker name: testing platform: os: linux arch: arm64 steps: - name: test image: golang:1.16 commands: - go mod download github.com/containernetworking/cni - go test -cover ./... volumes: - name: go path: /go - name: build image: golang:1.16 commands: - sh scripts/build.sh volumes: - name: go path: /go volumes: - name: go temp: {} --- kind: pipeline type: docker name: linux-arm64 platform: os: linux arch: arm64 steps: - name: environment image: golang:1.16 pull: always environment: CGO_ENABLED: "0" commands: - go version - go env - name: build image: golang:1.16 environment: CGO_ENABLED: "0" commands: - go build -o release/linux/arm64/drone-runner-docker - name: publish image: plugins/docker pull: if-not-exists settings: repo: cr.wks/drone/drone-runner-docker registry: http://cr.wks insecure: true auto_tag: true auto_tag_suffix: linux-arm64 dockerfile: docker/Dockerfile.linux.arm64 when: ref: - refs/heads/master - refs/tags/* depends_on: - testing trigger: ref: - refs/heads/master - refs/tags/** - refs/pull/**