This commit is contained in:
parent
7ebd4e093e
commit
fc30bfcf7f
3 changed files with 45 additions and 2 deletions
19
.woodpecker/build.yaml
Normal file
19
.woodpecker/build.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
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"
|
||||||
|
|
||||||
20
.woodpecker/deployment.yaml
Normal file
20
.woodpecker/deployment.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
skip_clone: true
|
||||||
|
|
||||||
|
when:
|
||||||
|
- event: "push"
|
||||||
|
branch: "main"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
# deploy docs-simoncor-net
|
||||||
|
- name: "deploy"
|
||||||
|
# renovate: datasource=docker depName=quay.io/argoproj/argocd
|
||||||
|
image: "cr.simoncor.net/quay/argoproj/argocd:v3.4.2"
|
||||||
|
commands:
|
||||||
|
- argocd app actions run docs-simoncor-net restart
|
||||||
|
--kind Deployment
|
||||||
|
--resource-name docs-simoncor-net
|
||||||
|
--server argo.simocnor.net
|
||||||
|
--auth-token $ARGOCD_AUTH_TOKEN
|
||||||
|
--grpc-web
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
# renovate: datasource=github-releases depName=squidfunk/mkdocs-material versioning=semver
|
# renovate: datasource=docker depName=docker.io/squidfunk/mkdocs-material
|
||||||
ARG MKDOCS_MATERIAL_VERSION=9.7.6
|
ARG MKDOCS_MATERIAL_VERSION=9.7.6
|
||||||
FROM docker.io/squidfunk/mkdocs-material:${MKDOCS_MATERIAL_VERSION}
|
FROM cr.simoncor.net/dockerhub/squidfunk/mkdocs-material:${MKDOCS_MATERIAL_VERSION}
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.title="MkDocs Material container for docs.simoncor.net"
|
||||||
|
LABEL org.opencontainers.image.vendor="Simon Cornet"
|
||||||
|
LABEL org.opencontainers.image.source="https://git.simoncor.net/oci/docs-simoncor-net"
|
||||||
|
|
||||||
WORKDIR /docs
|
WORKDIR /docs
|
||||||
COPY mkdocs.yml .
|
COPY mkdocs.yml .
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue