From 060f0efc16d1ac6ea8159431c08866cacae692e7 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sat, 13 Feb 2021 14:05:04 +0000 Subject: [PATCH] pull containers before manifest, run on different host --- .drone.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index b7a1d45..8d90444 100644 --- a/.drone.yml +++ b/.drone.yml @@ -135,6 +135,9 @@ steps: key_path: /root/drone_rsa command_timeout: 50m script: + - docker pull hrfee/jfa-go:manifest-latest-amd64 + - docker pull hrfee/jfa-go:manifest-latest-arm64 + - docker pull hrfee/jfa-go:manifest-latest-armhf - env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create hrfee/jfa-go:latest --amend hrfee/jfa-go:manifest-latest-amd64 --amend hrfee/jfa-go:manifest-latest-arm64 --amend hrfee/jfa-go:manifest-latest-armhf - env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push hrfee/jfa-go:latest trigger: @@ -287,16 +290,19 @@ steps: path: /root/drone_rsa settings: host: - from_secret: ssh_host + from_secret: ssh2_host username: - from_secret: ssh_username + from_secret: ssh2_username port: - from_secret: ssh_port + from_secret: ssh2_port volumes: - /root/.ssh/docker-build:/root/drone_rsa key_path: /root/drone_rsa command_timeout: 50m script: + - docker pull hrfee/jfa-go:manifest-unstable-amd64 + - docker pull hrfee/jfa-go:manifest-unstable-arm64 + - docker pull hrfee/jfa-go:manifest-unstable-armhf - env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create hrfee/jfa-go:unstable --amend hrfee/jfa-go:manifest-unstable-amd64 --amend hrfee/jfa-go:manifest-unstable-arm64 --amend hrfee/jfa-go:manifest-unstable-armhf - env DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push hrfee/jfa-go:unstable depends_on: