From b9d17d75f520435cbd4051b5375dbe8731d0ce65 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Wed, 27 Sep 2023 15:47:47 +0530 Subject: [PATCH] feat: publish docker img from CI --- .env-sample | 2 ++ .woodpecker.yml | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .env-sample create mode 100644 .woodpecker.yml diff --git a/.env-sample b/.env-sample new file mode 100644 index 0000000..6c7679b --- /dev/null +++ b/.env-sample @@ -0,0 +1,2 @@ +export FORGEJO_URL="http://localhost:7000" +export FORGEJO_SSH_URL="ssh://git@localhost:2222" diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..90adbad --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,20 @@ +pipeline: + build_docker_img: + image: plugins/docker + when: + event: [pull_request] + settings: + dry_run: true + repo: forgeflux/forgejo-init-script + tags: latest + + build_and_publish_docker_img: + image: plugins/docker + when: + event: [push, tag, deployment] + settings: + username: forgeflux + password: + from_secret: DOCKER_TOKEN + repo: forgeflux/forgejo-init-script + tags: latest