From 6810e19059a88a2c3fc260e231d2ecf05c3ab2db Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 8 Feb 2021 16:26:00 +0100 Subject: [PATCH] Use netshoot for crane --- .drone.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index df1944f..00590e2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -131,14 +131,17 @@ depends_on: - build prod images steps: - name: retag prod image - image: gcr.io/go-containerregistry/crane + image: nicolaka/netshoot environment: REGISTRY: rg.fr-par.scw.cloud/crocmagnon REGISTRY_USERNAME: { from_secret: registry_username } REGISTRY_PASSWORD: { from_secret: registry_password } + CRANE_VERSION: 0.4.0 commands: - - crane auth login -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD $REGISTRY - - crane tag rg.fr-par.scw.cloud/crocmagnon/blog:latest-temp latest + - wget "https://github.com/google/go-containerregistry/releases/download/v$CRANE_VERSION/go-containerregistry_Linux_x86_64.tar.gz" + - tar xzf go-containerregistry_Linux_x86_64.tar.gz + - ./crane auth login -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD $REGISTRY + - ./crane tag $REGISTRY/blog:latest-temp latest when: branch: - master