Update '.drone.yml'
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
089c872190
commit
2265388f6c
35
.drone.yml
35
.drone.yml
@ -1,29 +1,16 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: kubernetes
|
type: kubernetes
|
||||||
name: Container & Helm chart
|
name: Container
|
||||||
|
|
||||||
trigger:
|
|
||||||
event:
|
|
||||||
exclude:
|
|
||||||
- tag
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Container image (Harbor)
|
image: plugins/docker
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
context: .
|
||||||
pull: always
|
settings:
|
||||||
commands:
|
repo: bv11-cr01.bessems.eu/library/pinniped-server
|
||||||
- |
|
registry: bv11-cr01.bessems.eu
|
||||||
wget https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 -qO /bin/jq
|
tags: latest
|
||||||
chmod +x /bin/jq
|
mtu: 1450
|
||||||
- |
|
username:
|
||||||
/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
|
from_secret: harbor_username
|
||||||
HARBOR_PASSWORD:
|
password:
|
||||||
from_secret: harbor_password
|
from_secret: harbor_password
|
Loading…
Reference in New Issue
Block a user