No description
Find a file
2023-11-18 15:05:08 +01:00
.github Bump cachix/install-nix-action from 21 to 23 2023-11-11 15:09:06 +01:00
nix flake: add docker image 2023-05-28 17:19:53 +02:00
.envrc add flake 2022-05-22 22:31:06 +02:00
.gitignore update docker and ci files 2022-05-22 22:32:34 +02:00
.gitlab-ci.yml remove redundant job 2022-05-23 17:36:47 +02:00
flake.lock flake.lock: Update 2023-11-18 15:05:08 +01:00
flake.nix flake: Remove redundant gopls line 2023-11-18 15:05:08 +01:00
go.mod Move project to GitHub 2023-05-25 16:24:00 +02:00
go.sum update go modules 2023-04-14 18:26:32 +02:00
LICENSE fix LICENSE file 2022-05-21 12:25:05 +02:00
main.go Use different mail address and mark as bot 2023-05-29 00:43:42 +02:00
README.md Fix typo 2023-05-29 00:25:06 +02:00

pad-archiver

Archives the list of URLs provided on the standard input.

Usage of pad-archiver:
  -C string
        The directory containing the git repository in which to archive the pads. (default "$PWD")
  -password string
        The password for authenticating to the remote. Can also be specified via the environment variable GIT_PASSWORD.
  -push
        Push the changes to the remote specified by remoteUrl.
  -url string
        URL to push changes to.
  -username string
        The username for authenticating to the remote.
go build
pad-archiver < pads.txt

Examples

Using in GitLab CI

Archive pads:
  image: ghcr.io/dadada/pad-archiver
  rules:
    - if: $CI_PIPELINE_SOURCE == "schedule"
  script:
    - --push --url "${CI_PROJECT_URL}.git" --username gitlab-ci-token --password "${CI_ACCESS_TOKEN}" < pads.txt

As a GitHub action

TODO

Using Container Image

podman run --rm --mount type=bind,source=./.,destination=/repo -i --workdir /repo ghcr.io/dadada/pad-archiver < pads.txt