No description
Flake lock file updates: • Updated input 'flake-utils': 'github:numtide/flake-utils/cfacdce06f30d2b68473a46042957675eebb3401' (2023-04-11) → 'github:numtide/flake-utils/ff7b65b44d01cf9ba6a71320833626af21126384' (2023-09-12) • Updated input 'nixpkgs': 'path:/nix/store/bbi5840s1wrrg0lf7b63vddfppjbqpyg-source?lastModified=1681041438&narHash=sha256-NmRGMklxBZ8Ol47CKMQxAU1F+v8ySpsHAAiC7ZL4vxY=&rev=48dcbaf7fa799509cbec85d55b8d62dcf1477d57' (2023-04-09) → 'path:/nix/store/3s69yxbbl116zwga3i6cy7prplywq0bn-source?lastModified=1699291058&narHash=sha256-5ggduoaAMPHUy4riL+OrlAZE14Kh7JWX4oLEs22ZqfU=&rev=41de143fda10e33be0f47eab2bfe08a50f234267' (2023-11-06) |
||
---|---|---|
.github | ||
nix | ||
.envrc | ||
.gitignore | ||
.gitlab-ci.yml | ||
flake.lock | ||
flake.nix | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
README.md |
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