1
0
mirror of https://github.com/drone/drone-cli.git synced 2024-11-26 06:07:05 +01:00

Merge pull request #236 from tphoney/bla

(fix) setup dependencies in drone build
This commit is contained in:
TP Honey 2023-08-11 13:45:55 +01:00 committed by GitHub
commit 907bafaa8e
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -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