Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) setup dependencies in drone build #236

Merged
merged 1 commit into from
Aug 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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