From 5444d19d756ccf5dc4bbb42f28cef4c9894f01e1 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Fri, 9 Jun 2023 15:43:19 +0000 Subject: [PATCH] Update Syntax to match newest guidelines (#30) Reviewed-on: https://codeberg.org/Codeberg-CI/examples/pulls/30 --- .woodpecker.yml | 2 +- C/make.yml | 2 +- C/meson-android.yml | 3 ++- C/meson.yml | 3 ++- Docker/buildx.yml | 5 +++-- Docker/kaniko.yml | 3 ++- Hugo/hugo.yml | 10 ++++++---- Jekyll/jekyll.yml | 3 ++- KiCad/kibot.yml | 2 +- NodeJS/11ty.yml | 3 ++- Python/.woodpecker.yml | 2 +- Python/mkdocs.yml | 3 ++- Rust/.woodpecker.yml | 2 +- StandardML/sml.yml | 2 +- golang/build-docker.yml | 4 ++-- golang/build.yml | 2 +- tectonic/.woodpecker.yml | 2 +- 17 files changed, 31 insertions(+), 22 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index d7389b1..bdcab24 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,4 +1,4 @@ -pipeline: +steps: editor-config: image: mstruebing/editorconfig-checker group: lint diff --git a/C/make.yml b/C/make.yml index bc3b3d6..58cf950 100644 --- a/C/make.yml +++ b/C/make.yml @@ -1,4 +1,4 @@ -pipeline: +steps: build: image: alpine # this step gets ran on "master" and "dev" branch. diff --git a/C/meson-android.yml b/C/meson-android.yml index b5349d0..b1779ff 100644 --- a/C/meson-android.yml +++ b/C/meson-android.yml @@ -6,7 +6,8 @@ # # The cross compilation files for meson includes a `sys_root` property that you # may need to pass on to the compiler. -pipeline: + +steps: build: image: codeberg.org/native-ci/android-ndk:latest # this step gets run on "master" and "dev" branches. diff --git a/C/meson.yml b/C/meson.yml index 2e89475..74dc51d 100644 --- a/C/meson.yml +++ b/C/meson.yml @@ -8,7 +8,8 @@ # not in this example). # # Includes GCC and clang -pipeline: + +steps: build: image: codeberg.org/native-ci/cpp-meson:latest # this step gets run on "master" and "dev" branches. diff --git a/Docker/buildx.yml b/Docker/buildx.yml index 48972d6..04341c6 100644 --- a/Docker/buildx.yml +++ b/Docker/buildx.yml @@ -6,13 +6,14 @@ # this config also shows usage of yaml aliases and # was taken from https://codeberg.org/6543/docker-images/src/commit/37e29c227717c1c07d2776cddcf14725bf952875/.woodpecker/hello.yml -branches: main +when: + branch: main variables: - &file Dockerfile.hello - &repo codeberg.org/${CI_REPO_OWNER}/hello -pipeline: +steps: dryrun: image: woodpeckerci/plugin-docker-buildx settings: diff --git a/Docker/kaniko.yml b/Docker/kaniko.yml index 62cb468..bd25db7 100644 --- a/Docker/kaniko.yml +++ b/Docker/kaniko.yml @@ -3,7 +3,8 @@ # Pushing an image to a container registry authenticated: # DOCKER_USERNAME - Woodpecker CI Secret which is the container registry username # DOCKER_PASSWORD - Woodpecker CI Secret which is container registry password -pipeline: + +steps: publish-docker-image: image: plugins/kaniko settings: diff --git a/Hugo/hugo.yml b/Hugo/hugo.yml index e5267e3..c6fcecd 100644 --- a/Hugo/hugo.yml +++ b/Hugo/hugo.yml @@ -11,6 +11,11 @@ # The HUGO_OUTPUT variable must be set to the build output folder configured in Hugo # +# Exclude page pipeline to be run on "pages" branch +when: + branch: + exclude: pages + # Recursive cloning is used to fully clone the themes given as Git submodules clone: git: @@ -18,7 +23,7 @@ clone: settings: recursive: true -pipeline: +steps: # Build hugo static files build: image: klakegg/hugo @@ -49,6 +54,3 @@ pipeline: - git push when: event: push - -branches: - exclude: [ pages ] \ No newline at end of file diff --git a/Jekyll/jekyll.yml b/Jekyll/jekyll.yml index 5ec115b..1b44d06 100644 --- a/Jekyll/jekyll.yml +++ b/Jekyll/jekyll.yml @@ -18,7 +18,8 @@ # We also assume a domains file in the source repo that gets copied to # .domains in the target repo so codeberg pages works for custom domains # -pipeline: + +steps: build: # Use the official jekyll build container image: jekyll/jekyll diff --git a/KiCad/kibot.yml b/KiCad/kibot.yml index c66b75b..c12cad4 100644 --- a/KiCad/kibot.yml +++ b/KiCad/kibot.yml @@ -25,7 +25,7 @@ # a woodpecker file. Look at the KiBot documentation liked to above to add # your own tweaks -pipeline: +steps: # kibot creates the files kibot: image: ghcr.io/inti-cmnb/kicad7_auto_full:latest diff --git a/NodeJS/11ty.yml b/NodeJS/11ty.yml index ed85385..7b937b1 100644 --- a/NodeJS/11ty.yml +++ b/NodeJS/11ty.yml @@ -20,7 +20,8 @@ # We also assume a domains file in the source repo that gets copied to # .domains in the target repo so codeberg pages works for custom domains # -pipeline: + +steps: build: # Use the official jekyll build container image: node diff --git a/Python/.woodpecker.yml b/Python/.woodpecker.yml index 7e36c89..90ed26f 100644 --- a/Python/.woodpecker.yml +++ b/Python/.woodpecker.yml @@ -4,7 +4,7 @@ # check there for license information -pipeline: +steps: standardize: image: python:3.9-buster when: diff --git a/Python/mkdocs.yml b/Python/mkdocs.yml index 224bfe5..2f0846d 100644 --- a/Python/mkdocs.yml +++ b/Python/mkdocs.yml @@ -1,7 +1,8 @@ # build and deploy mkdocs to codeberg pages # This assumes your code lives in one repo, and you have a /pages # repo which will be used to host the built pages. -pipeline: + +steps: build-docs: # build the docs in /docs with mkdocs and # add the .domains file for codeberg pages diff --git a/Rust/.woodpecker.yml b/Rust/.woodpecker.yml index a47b575..a06cd54 100644 --- a/Rust/.woodpecker.yml +++ b/Rust/.woodpecker.yml @@ -1,7 +1,7 @@ matrix: RUST: [stable, beta, nightly] -pipeline: +steps: test: image: rust environment: [CARGO_TERM_COLOR=always] diff --git a/StandardML/sml.yml b/StandardML/sml.yml index bb65cc7..3683938 100644 --- a/StandardML/sml.yml +++ b/StandardML/sml.yml @@ -2,7 +2,7 @@ # # Checks all .sml files in a given directory. -pipeline: +steps: check: image: eldesh/smlnj environment: diff --git a/golang/build-docker.yml b/golang/build-docker.yml index f865f71..32cd545 100644 --- a/golang/build-docker.yml +++ b/golang/build-docker.yml @@ -1,4 +1,4 @@ -pipeline: +steps: # Builds your Go application build: # Set your preferred Go version: @@ -61,4 +61,4 @@ pipeline: when: # Push new version when version tag is created event: tag - tag: v* + ref: refs/tags/v* diff --git a/golang/build.yml b/golang/build.yml index e52f883..7519672 100644 --- a/golang/build.yml +++ b/golang/build.yml @@ -1,4 +1,4 @@ -pipeline: +steps: build: image: golang:1.17 commands: diff --git a/tectonic/.woodpecker.yml b/tectonic/.woodpecker.yml index 17cb509..d6ffe3a 100644 --- a/tectonic/.woodpecker.yml +++ b/tectonic/.woodpecker.yml @@ -19,7 +19,7 @@ # - CBTOKEN: an Access Tokens generated from your Codeberg profile; # - CBMAIL: an email address to author the commit containing the PDF file. -pipeline: +steps: build: image: dxjoke/tectonic-docker environment: