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

Commit

Permalink
drone: build images for linux/{amd64,arm64,arm} (#28)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Blain Christen <jacob@rancher.com>
  • Loading branch information
dweomer authored Mar 23, 2021
1 parent cfd8b86 commit b2580ce
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ platform:

steps:
- name: prepare
image: library/docker:20-git
image: library/alpine:3.11
environment:
GOLANG: golang:1.16-alpine
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
Expand Down Expand Up @@ -105,11 +106,12 @@ platform:

steps:
- name: prepare
image: library/docker:20-git
image: library/alpine:3.11
environment:
GOLANG: golang:1.16-alpine
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
Expand Down Expand Up @@ -158,15 +160,16 @@ name: armhf

platform:
os: linux
arch: arm
arch: arm64

steps:
- name: prepare
image: library/docker:20-git
image: library/alpine:3.11
environment:
GOLANG: golang:1.16-alpine
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
Expand Down

0 comments on commit b2580ce

Please sign in to comment.