kind: pipeline type: kubernetes name: Container & Helm chart trigger: event: exclude: - tag steps: - name: Container image (Harbor) image: gcr.io/kaniko-project/executor:debug pull: always commands: - | 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 $HARBOR_USERNAME':'$HARBOR_PASSWORD | base64)"'"' --null-input > /kaniko/.docker/config.json - | /kaniko/executor \ --dockerfile=Dockerfile \ --context=dir:/drone/src \ --destination=bv11-cr01.bessems.eu/library/pinniped-server:latest environment: HARBOR_USERNAME: from_secret: harbor_username HARBOR_PASSWORD: from_secret: harbor_password