1
0
mirror of https://github.com/drone/drone-cli.git synced 2024-11-23 01:11:57 +01:00

(fix) setup dependencies in drone build

This commit is contained in:
dependabot-ci 2023-08-11 13:32:12 +01:00
parent 2193eb1090
commit 9bff9727c4

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