This commit is contained in:
@@ -11,14 +11,9 @@ steps:
|
||||
- name: build
|
||||
image: gcr.io/kaniko-project/executor:debug
|
||||
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
|
||||
environment:
|
||||
DOCKER_CONFIG: /kaniko/.docker
|
||||
DOCKER_USERNAME:
|
||||
from_secret: docker_username
|
||||
DOCKER_PASSWORD:
|
||||
from_secret: docker_password
|
||||
|
||||
# - name: build
|
||||
# image: docker:dind
|
||||
|
||||
Reference in New Issue
Block a user