Refactor Woodpecker CI pipeline to use buildx plugin correctly
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
@@ -3,25 +3,29 @@ when:
|
|||||||
branch: main
|
branch: main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build-and-push
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx:4.2.0
|
||||||
|
privileged: true
|
||||||
settings:
|
settings:
|
||||||
registry: harbor.scottyah.com
|
|
||||||
repo: harbor.scottyah.com/scottyah/blog
|
repo: harbor.scottyah.com/scottyah/blog
|
||||||
tags: latest
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
insecure: true
|
tags:
|
||||||
username:
|
- latest
|
||||||
from_secret: harbor_username
|
- ${CI_COMMIT_SHA:0:8}
|
||||||
password:
|
logins:
|
||||||
from_secret: harbor_password
|
- registry: https://harbor.scottyah.com
|
||||||
|
username:
|
||||||
|
from_secret: harbor_username
|
||||||
|
password:
|
||||||
|
from_secret: harbor_password
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: bitnami/kubectl:latest
|
image: bitnami/kubectl:latest
|
||||||
commands:
|
commands:
|
||||||
- kubectl apply -f k8s.yaml -n blog
|
- kubectl apply -f k8s.yaml -n blog
|
||||||
|
- kubectl rollout restart deployment/blog-dep -n blog
|
||||||
- kubectl rollout status deployment/blog-dep -n blog
|
- kubectl rollout status deployment/blog-dep -n blog
|
||||||
environment:
|
environment:
|
||||||
KUBECONFIG:
|
KUBECONFIG:
|
||||||
|
|||||||
Reference in New Issue
Block a user