This commit is contained in:
@@ -8,12 +8,25 @@ steps:
|
||||
commands:
|
||||
- echo "Done"
|
||||
|
||||
- name: build
|
||||
image: gcr.io/kaniko-project/executor:debug
|
||||
commands:
|
||||
- /kaniko/executor --context=dir:///woodpecker/src --dockerfile=Dockerfile --destination=scottyah/blog:latest --cache=true
|
||||
environment:
|
||||
DOCKER_CONFIG: /kaniko/.docker
|
||||
|
||||
# - name: build
|
||||
# image: harbor.scottyah.com/kaniko-project/executor:debug
|
||||
# commands:
|
||||
# - mkdir -p /kaniko/.docker
|
||||
# - echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"$(printf '%s:%s' \"$DOCKER_USERNAME\" \"$DOCKER_PASSWORD\" | base64)\"}}}" > /kaniko/.docker/config.json
|
||||
# - /kaniko/executor --context=dir:///woodpecker/src --dockerfile=Dockerfile --destination=scottyah/blog:latest
|
||||
# environment:
|
||||
# DOCKER_USERNAME:
|
||||
# from_secret: docker_username
|
||||
# DOCKER_PASSWORD:
|
||||
# from_secret: docker_password
|
||||
|
||||
# - name: build
|
||||
# image: gcr.io/kaniko-project/executor:debug
|
||||
# commands:
|
||||
# - /kaniko/executor --context=dir:///woodpecker/src --dockerfile=Dockerfile --destination=scottyah/blog:latest --cache=true
|
||||
# environment:
|
||||
# DOCKER_CONFIG: /kaniko/.docker
|
||||
|
||||
# - name: build
|
||||
# image: docker:dind
|
||||
@@ -32,6 +45,14 @@ steps:
|
||||
# - docker push scottyah/blog:latest
|
||||
# volumes:
|
||||
# - /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
- name: build
|
||||
image: harbor.scottyah.com/kaniko-project/executor:debug
|
||||
commands:
|
||||
- docker build -t harbor.scottyah.com/scottyah/blog:latest .
|
||||
- docker push harbor.scottyah.com/scottyah/blog:latest
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
|
||||
- name: deploy
|
||||
image: kubernetes/client:latest
|
||||
|
||||
Reference in New Issue
Block a user