self hosted
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Scott Hatlen
2025-10-09 01:37:20 -07:00
parent e9f94a5582
commit 700e659896

View File

@@ -8,12 +8,25 @@ steps:
commands: commands:
- echo "Done" - echo "Done"
- name: build
image: gcr.io/kaniko-project/executor:debug # - name: build
commands: # image: harbor.scottyah.com/kaniko-project/executor:debug
- /kaniko/executor --context=dir:///woodpecker/src --dockerfile=Dockerfile --destination=scottyah/blog:latest --cache=true # commands:
environment: # - mkdir -p /kaniko/.docker
DOCKER_CONFIG: /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 # - name: build
# image: docker:dind # image: docker:dind
@@ -32,6 +45,14 @@ steps:
# - docker push scottyah/blog:latest # - docker push scottyah/blog:latest
# volumes: # volumes:
# - /var/run/docker.sock:/var/run/docker.sock # - /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 - name: deploy
image: kubernetes/client:latest image: kubernetes/client:latest