--- when: path: "documentation/**" event: [push, tag] variables: - &frontend_image "cl00e9ment/node.js-builder:git@sha256:c3f6622a282e81536fa07c0218dfc35aa4141076679d9ea73839ae0032bd57cb" clone: git: image: woodpeckerci/plugin-git@sha256:7af90de3a9aa5dc93cc0d5cd2e67e28cb237d4b8e891ccacfd9031f78f4b05a8 partial: false settings: skip_verify: true steps: "build:ui-bundle": image: *frontend_image commands: - npm install - npx gulp build - npx gulp bundle:pack directory: documentation/layouts/oc "build:documentation": image: *frontend_image commands: - unset HTTP_RPOXY # woodpecker sets empty proxy variables, but if present, antora expects valid values, empty is not valid - unset http_proxy - unset HTTPS_PROXY - unset https_proxy - pnpm install --frozen-lockfile - pnpm antora generate --stacktrace antora-playbook.yml directory: documentation "assemble:documentation": image: gcr.io/kaniko-project/executor:v1.20.0-debug@sha256:6976d731d1fc2a4e89986d833c1538946bd36b43e21fb1d0db38fe9499adc49c commands: # Test if using --insecure can be used to directly push to the registry - echo "$CI_WORKSPACE" - echo "$PWD" - ls -lh - /kaniko/executor --context . --dockerfile Dockerfile --destination=image --tar-path=image.tar --no-push - ls -lh directory: documentation "publish:documentation": image: alpine/crane@sha256:9955edb61b8cf8d8820a6caef232bca275f064aa3c23b050645da42fba62c7df # because the official crane image is not compatible with woodpecker (no /bin/sh) commands: - crane push --insecure image.tar "container.demo.rattermeyer.de/${CI_REPO_OWNER}/${CI_REPO_NAME}" directory: documentation