Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
ci: duplicated prepare step for manifest (#77)
Browse files Browse the repository at this point in the history
Because pipelines can land on different runners.

Signed-off-by: Jacob Blain Christen <jacob@rancher.com>
  • Loading branch information
dweomer authored Sep 1, 2021
1 parent 252a8d0 commit 5c7f226
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,18 @@ platform:
arch: amd64

steps:
- name: all
- name: prepare
image: library/alpine:3.14
environment:
GOLANG: golang:1.16-alpine3.14
IMAGE: drone.cattle.io/rancher/kim
commands:
- "apk --no-cache add docker-cli git"
- "docker build --target docker --build-arg GOLANG --tag $${IMAGE}:possible --tag $${IMAGE}:$(git rev-parse --short HEAD) ."
volumes:
- name: docker
path: /var/run/docker.sock
- name: manifest-all
image: drone.cattle.io/rancher/kim:possible
pull: never
environment:
Expand All @@ -145,6 +156,11 @@ steps:
- refs/head/master
- refs/tags/*

volumes:
- name: docker
host:
path: /var/run/docker.sock

depends_on:
- cross

Expand Down

0 comments on commit 5c7f226

Please sign in to comment.