--- kind: pipeline type: docker name: build-arm64 platform: os: linux arch: arm64 steps: - name: linky2influx image: golang:alpine commands: - apk --no-cache add build-base - go get -d -v - go vet -v -buildvcs=false - go build -v -buildvcs=false -ldflags="-s -w" - name: deploy binary image: plugins/s3 settings: endpoint: https://storage.nemunai.re path_style: true bucket: linky2influx access_key: from_secret: s3_access_key secret_key: from_secret: s3_secret_key source: linky2influx target: /${DRONE_BRANCH//\//-}/${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} - name: publish image: plugins/docker settings: repo: nemunaire/linky2influx auto_tag: true auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} username: from_secret: docker_username password: from_secret: docker_password trigger: event: - cron - push - tag --- kind: pipeline type: docker name: build-arm platform: os: linux arch: arm steps: - name: linky2influx image: golang:alpine commands: - apk --no-cache add build-base - go get -d -v - go vet -v -buildvcs=false - go build -v -buildvcs=false -ldflags="-s -w" - name: deploy binary image: plugins/s3:linux-arm settings: endpoint: https://storage.nemunai.re path_style: true bucket: linky2influx access_key: from_secret: s3_access_key secret_key: from_secret: s3_secret_key source: linky2influx target: /${DRONE_BRANCH//\//-}/${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} - name: publish image: plugins/docker:linux-arm settings: repo: nemunaire/linky2influx auto_tag: true auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} custom_dns: 192.168.0.254 custom_dns_search: "" username: from_secret: docker_username password: from_secret: docker_password trigger: event: - cron - push - tag --- kind: pipeline name: docker-manifest steps: - name: publish image: plugins/manifest settings: auto_tag: true ignore_missing: true spec: .drone-manifest.yml username: from_secret: docker_username password: from_secret: docker_password trigger: event: - cron - push - tag depends_on: - build-arm - build-arm64