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
|
- name: build
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
commands:
|
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
|
- /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
|
- name: deploy
|
||||||
image: bitnami/kubectl:latest
|
image: bitnami/kubectl:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user