A drone plugin to deploy to codeberg pages. Basically takes a folder and pushes it to the "pages" branch in the same repo.
Find a file
Dorian Zedler f0cb8893c8
All checks were successful
continuous-integration/drone/push Build is passing
Update '.drone.yml'
2022-07-23 20:35:26 +02:00
docker Feat: first working version 2022-07-23 20:28:41 +02:00
plugin Feat: first working version 2022-07-23 20:28:41 +02:00
scripts Chore: Initial commit 2022-07-17 18:28:14 +02:00
.drone.yml Update '.drone.yml' 2022-07-23 20:35:26 +02:00
.drone.yml.multiarch Chore: Initial commit 2022-07-17 18:28:14 +02:00
.gitignore Feat: first working version 2022-07-23 20:28:41 +02:00
go.mod Feat: first working version 2022-07-23 20:28:41 +02:00
go.sum Feat: first working version 2022-07-23 20:28:41 +02:00
LICENSE Initial commit 2022-07-17 18:22:34 +02:00
LICENSE.md Chore: Initial commit 2022-07-17 18:28:14 +02:00
main.go Chore: Initial commit 2022-07-17 18:28:14 +02:00
README.md Feat: first working version 2022-07-23 20:28:41 +02:00

A plugin to deploy to codeberg pages. Basically takes a folder and pushes it to the "pages" branch in the same repo..

Usage

The following settings changes this plugin's behavior.

  • param1 (optional) does something.
  • param2 (optional) does something different.

Below is an example .drone.yml that uses this plugin.

kind: pipeline
name: default

steps:
- name: run itsblue.dev/plugins/codeberg-pages-deploy plugin
  image: itsblue.dev/plugins/codeberg-pages-deploy
  pull: if-not-exists
  settings:
    folder: public
    ssh_key: foo

Building

Build the plugin binary:

scripts/build.sh

Build the plugin image:

docker build -t itsblue.dev/plugins/codeberg-pages-deploy -f docker/Dockerfile .

Testing

Execute the plugin from your current working directory:

docker run --rm -e PLUGIN_FOLDER=public -e PLUGIN_SSH_KEY=foo \
  -e DRONE_COMMIT_SHA=8f51ad7884c5eb69c11d260a31da7a745e6b78e2 \
  -e DRONE_COMMIT_BRANCH=master \
  -e DRONE_BUILD_NUMBER=43 \
  -e DRONE_BUILD_STATUS=success \
  -w /drone/src \
  -v $(pwd):/drone/src \
  itsblue.dev/plugins/codeberg-pages-deploy