ok bug fix
This commit is contained in:
@@ -11,14 +11,14 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
commands:
|
commands:
|
||||||
- /kaniko/executor
|
- echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"$(echo -n $DOCKER_USERNAME:$DOCKER_PASSWORD | base64)\"}}}" > /kaniko/.docker/config.json
|
||||||
--context .
|
- /kaniko/executor --context=dir:///woodpecker/src --dockerfile=Dockerfile --destination=scottyah/blog:latest --cache=true
|
||||||
--dockerfile Dockerfile
|
|
||||||
--destination scottyah/blog:latest
|
|
||||||
--cache=true
|
|
||||||
secrets: [docker_username, docker_password]
|
|
||||||
environment:
|
environment:
|
||||||
DOCKER_CONFIG: /kaniko/.docker
|
DOCKER_CONFIG: /kaniko/.docker
|
||||||
|
DOCKER_USERNAME:
|
||||||
|
from_secret: docker_username
|
||||||
|
DOCKER_PASSWORD:
|
||||||
|
from_secret: docker_password
|
||||||
|
|
||||||
# - name: build
|
# - name: build
|
||||||
# image: docker:dind
|
# image: docker:dind
|
||||||
|
|||||||
Reference in New Issue
Block a user