From 700e65989626dc6b0a2a4a4453b9c1ddd4736275 Mon Sep 17 00:00:00 2001 From: Scott Hatlen Date: Thu, 9 Oct 2025 01:37:20 -0700 Subject: [PATCH] self hosted --- .woodpecker.yml | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 68d2326..459963a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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