chore: Fix variable reference

This commit is contained in:
Danny Bessems 2023-07-11 21:19:54 +02:00
parent a4ced9e4b4
commit e83b98e116
1 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ steps:
wget https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 -qO /bin/jq
chmod +x /bin/jq
- |
/bin/jq '.auths["https://bv11-cr01.bessems.eu/v2/"].auth="'"$(echo -n $DOCKER_USERNAME':'$DOCKER_PASSWORD | base64)"'"' --null-input > /kaniko/.docker/config.json
/bin/jq '.auths["https://bv11-cr01.bessems.eu/v2/"].auth="'"$(echo -n $HARBOR_USERNAME':'$HARBOR_PASSWORD | base64)"'"' --null-input > /kaniko/.docker/config.json
- |
export IMAGE_TAG=$(cat .version)
- |
@ -61,9 +61,9 @@ steps:
--destination=bv11-cr01.bessems.eu/library/json-server:latest \
--destination=bv11-cr01.bessems.eu/library/json-server:$IMAGE_TAG
environment:
DOCKER_USERNAME:
HARBOR_USERNAME:
from_secret: harbor_username
DOCKER_PASSWORD:
HARBOR_PASSWORD:
from_secret: harbor_password
- name: Container image (docker.io)