From 2265388f6c42099a8535108bb17ecf31facf2fad Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Tue, 31 Oct 2023 14:07:50 +0000 Subject: [PATCH] Update '.drone.yml' --- .drone.yml | 35 +++++++++++------------------------ 1 file changed, 11 insertions(+), 24 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2972f95c..cf7d40ba 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,29 +1,16 @@ kind: pipeline type: kubernetes -name: Container & Helm chart - -trigger: - event: - exclude: - - tag +name: Container 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: +image: plugins/docker + context: . + settings: + repo: bv11-cr01.bessems.eu/library/pinniped-server + registry: bv11-cr01.bessems.eu + tags: latest + mtu: 1450 + username: from_secret: harbor_username - HARBOR_PASSWORD: - from_secret: harbor_password + password: + from_secret: harbor_password \ No newline at end of file