From 4476e3633c058127fb95b7841db78b4edd2216b4 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Thu, 2 Jan 2025 16:53:47 +0530 Subject: [PATCH] feat: port to woodpecker CI --- .woodpecker.yml | 56 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..90d7537 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,56 @@ +steps: + test: + image: rust + when: + event: [push, pull_request, tag, deployment] + environment: + POSTGRES_DATABASE_URL: postgres://postgres:password@database:5432/postgres + SQLITE_DATABASE_URL: sqlite:///tmp/admin.db + commands: + # - curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\ + # - apt update && apt-get -y --no-install-recommends install nodejs tar gpg curl wget + # - rustup toolchain install nightly + # - rustup override set nightly + # - rustup component add rustfmt + # - rustup component add clippy + # - export FORGEFLUX_server_COOKIE_SECRET=d05604b56ffd0f57200be49313a9e51436ca8f1678b9ffdf8d2602d5e9839f05 + - make migrate + - make + - make lint + - make test + + # build_binary: + # image: rust + # when: + # event: [push, pull_request, tag, deployment] + # commands: + # - rustup override set stable + # - make release + + build_docker_img: + image: plugins/docker + when: + event: [pull_request] + settings: + dry_run: true + repo: forgeflux/starchart + tags: latest + + # build_and_publish_docker_img: + # image: plugins/docker + # when: + # event: [push, tag, deployment] + # branch: master + # settings: + # username: forgeflux + # password: + # from_secret: DOCKER_TOKEN + # repo: forgeflux/forgeflux + # tags: + # latest + +services: + database: + image: postgres + environment: + POSTGRES_PASSWORD: password