Go to file
Alexander "PapaTutuWawa 6fecf6fc11
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: Allow pushing to different repositories
2024-01-14 19:23:33 +01:00
.gitignore Initial commit 2024-01-05 22:21:16 +01:00
.woodpecker.yml Initial commit 2024-01-05 22:21:16 +01:00
Dockerfile Initial commit 2024-01-05 22:21:16 +01:00
Dockerfile.ssh feat: Add a variant using an SSH deploy key 2024-01-11 12:49:33 +01:00
entrypoint-ssh.sh feat: Allow pushing to different repositories 2024-01-14 19:23:33 +01:00
entrypoint.sh Fix entrypoint 2024-01-05 22:51:16 +01:00
go.mod Initial commit 2024-01-05 22:21:16 +01:00
go.sum Initial commit 2024-01-05 22:21:16 +01:00
LICENSE Initial commit 2024-01-05 22:21:16 +01:00
main Initial commit 2024-01-05 22:21:16 +01:00
main_test.go Initial commit 2024-01-05 22:21:16 +01:00
main.go Initial commit 2024-01-05 22:21:16 +01:00
README.md Add README 2024-01-05 23:01:57 +01:00
ssh_config feat: Add a variant using an SSH deploy key 2024-01-11 12:49:33 +01:00

woodpecker-ssg-deploy

A Woodpecker plugin to push outputs created by SSGs into git repositories.

Usage

  deploy:
    image: git.polynom.me/papatutuwawa/woodpecker-ssg-deploy:latest
    # The push token
    # NOTE: For gitea, this is currently an access token with Read/Write access
    #       to repositories.
    secrets: [ token ]
    settings:
      # The EMail to use for the git user that does the pushing
      email: "system@example.org"
      # The name to use for the git user that does the pushing
      name: "example.org CI System"
      # The name of the environment variable that contains the push token
      token_env: "TOKEN"
      # The name of the directory containing the SSG output
      output: "public"
      # The name of the branch to push into. Defaults to "pages"
      branch: "pages"

What the plugin does is initialize a new Git repository in the output directory, add all files in the output directory to the repository and then force push to the original repository on the specified branch.

For a real-life example see here.

License

See LICENSE.