Skip to content

Commit

Permalink
Merge pull request #236 from tphoney/bla
Browse files Browse the repository at this point in the history
(fix) setup dependencies in drone build
  • Loading branch information
TP Honey authored Aug 11, 2023
2 parents 2193eb1 + 9bff972 commit 907bafa
Showing 1 changed file with 23 additions and 7 deletions.
30 changes: 23 additions & 7 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -24,6 +26,8 @@ steps:
auto_tag: true
when:
event: [push, tag]
depends_on:
- build

- name: publish_alpine
image: plugins/docker
Expand All @@ -38,6 +42,8 @@ steps:
dockerfile: Dockerfile.alpine
when:
event: [push, tag]
depends_on:
- build

- name: publish_linux_arm
image: plugins/docker
Expand All @@ -52,6 +58,8 @@ steps:
dockerfile: Dockerfile.linux.arm
when:
event: [push, tag]
depends_on:
- build

- name: publish_linux_arm64
image: plugins/docker
Expand All @@ -66,6 +74,8 @@ steps:
dockerfile: Dockerfile.linux.arm64
when:
event: [push, tag]
depends_on:
- build

- name: publish_linux_ppc64le
image: plugins/docker
Expand All @@ -80,6 +90,8 @@ steps:
dockerfile: Dockerfile.linux.ppc64le
when:
event: [push, tag]
depends_on:
- build

- name: release
image: plugins/github-release
Expand All @@ -91,6 +103,8 @@ steps:
from_secret: github_token
when:
event: tag
depends_on:
- build

- name: manifest
image: plugins/manifest:1.2
Expand All @@ -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

0 comments on commit 907bafa

Please sign in to comment.