regestry creds instead of two secrets
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -6,14 +6,7 @@ steps:
|
||||
- name: build
|
||||
image: gcr.io/kaniko-project/executor:debug
|
||||
commands:
|
||||
- mkdir -p /kaniko/.docker
|
||||
- echo "{\"auths\":{\"harbor.scottyah.com\":{\"auth\":\"$(printf '%s:%s' \"$HARBOR_USERNAME\" \"$HARBOR_PASSWORD\" | base64)\"}}}" > /kaniko/.docker/config.json
|
||||
- /kaniko/executor --context=dir:///woodpecker/src --dockerfile=Dockerfile --destination=harbor.scottyah.com/scottyah/blog:latest --cache=true
|
||||
environment:
|
||||
HARBOR_USERNAME:
|
||||
from_secret: harbor_username
|
||||
HARBOR_PASSWORD:
|
||||
from_secret: harbor_password
|
||||
|
||||
- name: deploy
|
||||
image: bitnami/kubectl:latest
|
||||
|
||||
Reference in New Issue
Block a user