claude updates to woodpecker
This commit is contained in:
@@ -3,58 +3,23 @@ when:
|
|||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: echo
|
- name: build
|
||||||
image: alpine/git
|
image: gcr.io/kaniko-project/executor:debug
|
||||||
commands:
|
commands:
|
||||||
- echo "Done"
|
- mkdir -p /kaniko/.docker
|
||||||
|
- echo "{\"auths\":{\"harbor.scottyah.com\":{\"auth\":\"$(printf '%s:%s' \"$HARBOR_USERNAME\" \"$HARBOR_PASSWORD\" | base64)\"}}}" > /kaniko/.docker/config.json
|
||||||
|
- /kaniko/executor --context=dir:///woodpecker/src --dockerfile=Dockerfile --destination=harbor.scottyah.com/scottyah/blog:latest --cache=true
|
||||||
|
environment:
|
||||||
|
HARBOR_USERNAME:
|
||||||
|
from_secret: harbor_username
|
||||||
|
HARBOR_PASSWORD:
|
||||||
|
from_secret: harbor_password
|
||||||
|
|
||||||
|
|
||||||
# - 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
|
|
||||||
# commands:
|
|
||||||
# - sleep 5 # Wait for Docker daemon to start
|
|
||||||
# - docker build -t scottyah/blog:latest .
|
|
||||||
# - docker push scottyah/blog:latest
|
|
||||||
# environment:
|
|
||||||
# DOCKER_HOST: tcp://127.0.0.1:2375
|
|
||||||
# privileged: true
|
|
||||||
|
|
||||||
# - name: build
|
|
||||||
# image: docker
|
|
||||||
# commands:
|
|
||||||
# - docker build -t scottyah/blog:latest .
|
|
||||||
# - docker push scottyah/blog:latest
|
|
||||||
# volumes:
|
|
||||||
# - /var/run/docker.sock:/var/run/docker.sock
|
|
||||||
|
|
||||||
# - name: build
|
|
||||||
# image: gcr.io/kaniko-project/executor:debug
|
|
||||||
# commands:
|
|
||||||
# - /kaniko/executor --context=dir:///woodpecker/src --dockerfile=Dockerfile --destination=harbor.scottyah.com/scottyah/blog:latest --cache=true
|
|
||||||
# environment:
|
|
||||||
# DOCKER_CONFIG: /kaniko/.docker
|
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: kubernetes/client:latest
|
image: bitnami/kubectl:latest
|
||||||
commands:
|
commands:
|
||||||
- kubectl apply -f k8s.yaml
|
- kubectl apply -f k8s.yaml -n blog
|
||||||
- kubectl rollout status deployment/blog-dep
|
- kubectl rollout status deployment/blog-dep -n blog
|
||||||
|
environment:
|
||||||
|
KUBECONFIG:
|
||||||
|
from_secret: kubeconfig
|
||||||
Reference in New Issue
Block a user