No description
Find a file
dependabot[bot] fab9987dde
Bump cachix/install-nix-action from 23 to 25
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 23 to 25.
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Commits](https://github.com/cachix/install-nix-action/compare/v23...v25)

---
updated-dependencies:
- dependency-name: cachix/install-nix-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-15 10:20:59 +00:00
.github Bump cachix/install-nix-action from 23 to 25 2024-01-15 10:20:59 +00: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
args.go Refactor error handling 2023-11-18 16:29:49 +01:00
commit.go Refactor error handling 2023-11-18 16:29:49 +01:00
download.go Refactor error handling 2023-11-18 16:29:49 +01: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 Refactor error handling 2023-11-18 16:29:49 +01:00
README.md Fix typo 2023-05-29 00:25:06 +02:00
remote.go Refactor error handling 2023-11-18 16:29:49 +01:00
repo.go Refactor error handling 2023-11-18 16:29:49 +01:00
update.go Refactor error handling 2023-11-18 16:29:49 +01: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