kind: pipeline type: docker name: default platform: arch: amd64 os: linux steps: - name: build image: golang:1.16.4-buster commands: - pwd - export SRC=$DRONE_WORKSPACE - chmod 755 $SRC/build.sh - $SRC/build.sh - echo ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH}-${DRONE_REPO_BRANCH}-${DRONE_COMMIT_SHA:0:8}>version - ls - cat version when: branch: - master