No description
Find a file
dadada a421d22738 flake.lock: Update
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)
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 Enable use in GitLab CI 2023-05-28 21:05:25 +02: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