Skip to content

Commit

Permalink
Merge pull request #66 from dweomer/drone-tweaks
Browse files Browse the repository at this point in the history
drone: tweaks to make image publishing work
  • Loading branch information
dweomer authored Nov 20, 2020
2 parents 30047c8 + c4e63a9 commit 0fd9e74
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ platform:
steps:
- name: build
image: rancher/dapper:v0.5.0
environment:
ARCH: "${DRONE_STAGE_ARCH}"
commands:
- dapper --file Dockerfile --target dapper ci
environment:
ARCH: "${DRONE_STAGE_ARCH}"
volumes:
- name: docker
path: /var/run/docker.sock
Expand Down Expand Up @@ -42,15 +42,17 @@ steps:
- name: docker-publish
image: plugins/docker
settings:
build_args:
ARCH: amd64
build_args_from_env:
- ARCH
username:
from_secret: docker_username
password:
from_secret: docker_password
target: release
repo: rancher/kine
tag: "${DRONE_TAG}-amd64"
tag: "${DRONE_TAG}-${DRONE_STAGE_ARCH}"
target: release
environment:
ARCH: "${DRONE_STAGE_ARCH}"
when:
event:
- tag
Expand All @@ -77,10 +79,10 @@ platform:
steps:
- name: build
image: rancher/dapper:v0.5.0
environment:
ARCH: "${DRONE_STAGE_ARCH}"
commands:
- dapper --file Dockerfile --target dapper ci
environment:
ARCH: "${DRONE_STAGE_ARCH}"
volumes:
- name: docker
path: /var/run/docker.sock
Expand Down Expand Up @@ -109,15 +111,17 @@ steps:
- name: docker-publish
image: plugins/docker
settings:
build_args:
ARCH: arm64
build_args_from_env:
- ARCH
username:
from_secret: docker_username
password:
from_secret: docker_password
target: release
repo: rancher/kine
tag: "${DRONE_TAG}-arm64"
tag: "${DRONE_TAG}-${DRONE_STAGE_ARCH}"
target: release
environment:
ARCH: "${DRONE_STAGE_ARCH}"
when:
event:
- tag
Expand All @@ -144,10 +148,10 @@ platform:
steps:
- name: build
image: rancher/dapper:v0.5.0
environment:
ARCH: "${DRONE_STAGE_ARCH}"
commands:
- dapper --file Dockerfile --target dapper ci
environment:
ARCH: "${DRONE_STAGE_ARCH}"
volumes:
- name: docker
path: /var/run/docker.sock
Expand Down Expand Up @@ -176,15 +180,17 @@ steps:
- name: docker-publish
image: plugins/docker
settings:
build_args:
ARCH: arm
build_args_from_env:
- ARCH
username:
from_secret: docker_username
password:
from_secret: docker_password
target: release
repo: rancher/kine
tag: "${DRONE_TAG}-arm"
tag: "${DRONE_TAG}-${DRONE_STAGE_ARCH}"
target: release
environment:
ARCH: "${DRONE_STAGE_ARCH}"
when:
event:
- tag
Expand Down

0 comments on commit 0fd9e74

Please sign in to comment.