Sign inSign up

kamilaborowska/plugin-codeberg-pages-deploy

By kamilaborowska

•Updated 2 months ago

Automatic Codeberg Pages deployment plugin for Woodpecker CI.

Image
0

2.6K

kamilaborowska/plugin-codeberg-pages-deploy repository overview

Source code is available at https://codeberg.org/xfix/plugin-codeberg-pages-deploy⁠.

⁠Codeberg Pages Deploy plugin for Woodpecker CI

Codeberg Pages Deploy plugin automatically deploys a directory to pages branch.

⁠Usage

To use the plugin add a step similar to this after creating a directory containing static page contents.

deploy:
  image: codeberg.org/xfix/plugin-codeberg-pages-deploy
  settings:
    folder: dist
    ssh_key:
      from_secret: ssh_key

Generate an SSH key using the following command.

ssh-keygen -t ed25519 -f /tmp/out

In Woodpecker CI settings, create a secret called ssh_key containing a private key stored in /tmp/out file.

In Codeberg repository settings, add a Deploy Key with Write Acccess using a public key stored in /tmp/out.pub file.

⁠Configuration

KeyInformationRequired
folderDirectory containing static page contents.Yes
ssh_keySSH deploy key, usually passed as a secret.Yes
repository_nameRepository name to deploy to, if not specified it will deploy to the repository the workflow is running from.No
branchBranch to deploy to. Defaults to pages.No
git_config_nameCustomizes the name that is attached to the deployment commit, defaults to commit author username.No
git_config_emailCustomizes the email that is attached to the deployment commit, defaults to commit author email address.No

Tag summary

Content type

Image

Digest

sha256:4809dbf55…

Size

19.8 MB

Last updated

2 months ago

docker pull kamilaborowska/plugin-codeberg-pages-deploy