This commit is contained in:
@@ -11,14 +11,9 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: gcr.io/kaniko-project/executor:debug
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
commands:
|
commands:
|
||||||
- echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"$(echo -n $DOCKER_USERNAME:$DOCKER_PASSWORD | base64)\"}}}" > /kaniko/.docker/config.json
|
|
||||||
- /kaniko/executor --context=dir:///woodpecker/src --dockerfile=Dockerfile --destination=scottyah/blog:latest --cache=true
|
- /kaniko/executor --context=dir:///woodpecker/src --dockerfile=Dockerfile --destination=scottyah/blog:latest --cache=true
|
||||||
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