diff --git a/.drone.yml b/.drone.yml index 2d514794..98d9a34f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,12 +6,14 @@ steps: - name: test image: golang:1.18 commands: - - go test ./... + - go test ./... - name: build image: golang:1.18 commands: - - sh .drone.sh + - sh .drone.sh + depends_on: + - test - name: publish_latest image: plugins/docker @@ -24,6 +26,8 @@ steps: auto_tag: true when: event: [push, tag] + depends_on: + - build - name: publish_alpine image: plugins/docker @@ -38,6 +42,8 @@ steps: dockerfile: Dockerfile.alpine when: event: [push, tag] + depends_on: + - build - name: publish_linux_arm image: plugins/docker @@ -52,6 +58,8 @@ steps: dockerfile: Dockerfile.linux.arm when: event: [push, tag] + depends_on: + - build - name: publish_linux_arm64 image: plugins/docker @@ -66,6 +74,8 @@ steps: dockerfile: Dockerfile.linux.arm64 when: event: [push, tag] + depends_on: + - build - name: publish_linux_ppc64le image: plugins/docker @@ -80,6 +90,8 @@ steps: dockerfile: Dockerfile.linux.ppc64le when: event: [push, tag] + depends_on: + - build - name: release image: plugins/github-release @@ -91,6 +103,8 @@ steps: from_secret: github_token when: event: tag + depends_on: + - build - name: manifest image: plugins/manifest:1.2 @@ -102,10 +116,12 @@ steps: from_secret: docker_username password: from_secret: docker_password + when: + event: [push, tag] depends_on: - - publish_latest - - publish_alpine - - publish_linux_arm - - publish_linux_arm64 - - publish_linux_ppc64le + - publish_latest + - publish_alpine + - publish_linux_arm + - publish_linux_arm64 + - publish_linux_ppc64le