Use netshoot for crane
This commit is contained in:
parent
dc6e688342
commit
6810e19059
1 changed files with 6 additions and 3 deletions
|
@ -131,14 +131,17 @@ depends_on:
|
||||||
- build prod images
|
- build prod images
|
||||||
steps:
|
steps:
|
||||||
- name: retag prod image
|
- name: retag prod image
|
||||||
image: gcr.io/go-containerregistry/crane
|
image: nicolaka/netshoot
|
||||||
environment:
|
environment:
|
||||||
REGISTRY: rg.fr-par.scw.cloud/crocmagnon
|
REGISTRY: rg.fr-par.scw.cloud/crocmagnon
|
||||||
REGISTRY_USERNAME: { from_secret: registry_username }
|
REGISTRY_USERNAME: { from_secret: registry_username }
|
||||||
REGISTRY_PASSWORD: { from_secret: registry_password }
|
REGISTRY_PASSWORD: { from_secret: registry_password }
|
||||||
|
CRANE_VERSION: 0.4.0
|
||||||
commands:
|
commands:
|
||||||
- crane auth login -u $REGISTRY_USERNAME -p $REGISTRY_PASSWORD $REGISTRY
|
- wget "https://github.com/google/go-containerregistry/releases/download/v$CRANE_VERSION/go-containerregistry_Linux_x86_64.tar.gz"
|
||||||
- crane tag rg.fr-par.scw.cloud/crocmagnon/blog:latest-temp latest
|
- 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:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
|
Reference in a new issue