diff --git a/.drone.yml b/.drone.yml index 25dfb56..380e090 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,7 +30,47 @@ steps: GOARM: 7 - name: publish - image: plugins/docker:linux-arm + image: plugins/docker + settings: + repo: nemunaire/atsebay.t + auto_tag: true + auto_tag_suffix: ${DRONE_STAGE_OS}-${DRONE_STAGE_ARCH} + username: + from_secret: docker_username + password: + from_secret: docker_password + +--- +kind: pipeline +type: docker +name: build-arm64 + +platform: + os: linux + arch: arm64 + +steps: +- name: generate frontend + image: golang:alpine + commands: + - apk --no-cache add go-bindata + - go generate -v + +- name: vet + image: golang:alpine + commands: + - apk --no-cache add build-base + - go vet -v + +- name: backend + image: golang:alpine + commands: + - apk --no-cache add build-base + - go get -v + - go build -v + +- name: publish + image: plugins/docker settings: repo: nemunaire/atsebay.t auto_tag: true @@ -64,3 +104,4 @@ trigger: depends_on: - build-arm +- build-arm64