feat: unify woodpecker steps
All checks were successful
ci/woodpecker/push/build-and-deploy Pipeline was successful
All checks were successful
ci/woodpecker/push/build-and-deploy Pipeline was successful
This commit is contained in:
parent
a2bb2bfecc
commit
067e122bfa
2 changed files with 11 additions and 19 deletions
34
.woodpecker/build-and-deploy.yaml
Normal file
34
.woodpecker/build-and-deploy.yaml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
---
|
||||
when:
|
||||
- event: "push"
|
||||
branch: "main"
|
||||
- event: "manual"
|
||||
|
||||
steps:
|
||||
|
||||
# build mkdocs container
|
||||
- name: "build"
|
||||
image: "cr.simoncor.net/quay/buildah/stable:latest"
|
||||
privileged: true
|
||||
commands:
|
||||
|
||||
# build and push mkdocs container
|
||||
- "buildah bud -t docs-simoncor-net ."
|
||||
- "buildah tag docs-simoncor-net cr.simoncor.net/docs-simoncor-net:latest"
|
||||
- "buildah push cr.simoncor.net/docs-simoncor-net:latest"
|
||||
|
||||
# deploy docs-simoncor-net
|
||||
- name: "argo"
|
||||
depends_on: "build"
|
||||
# renovate: datasource=docker depName=quay.io/argoproj/argocd
|
||||
image: "cr.simoncor.net/quay/argoproj/argocd:v3.4.2"
|
||||
environment:
|
||||
ARGOCD_AUTH_TOKEN:
|
||||
from_secret: "argocd_auth_token"
|
||||
commands:
|
||||
- argocd app actions run docs-simoncor-net restart
|
||||
--kind Deployment
|
||||
--resource-name docs-simoncor-net
|
||||
--server argo.simoncor.net
|
||||
--auth-token $ARGOCD_AUTH_TOKEN
|
||||
--grpc-web
|
||||
Loading…
Add table
Add a link
Reference in a new issue