Enable use in GitLab CI

This commit is contained in:
Tim Schubert 2023-05-28 20:59:57 +02:00
parent d14917323d
commit 8f2df84d66
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 18 additions and 7 deletions

View file

@ -6,3 +6,20 @@ Archives the list of URLs provided on the standard input.
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*

View file

@ -16,13 +16,7 @@
name = "pad-archiver";
tag = "latest";
contents = [ pad-archiver ];
extraCommands = ''
mkdir -p repo
'';
config = {
WorkingDir = "/repo";
Entrypoint = [ "${pad-archiver}/bin/pad-archiver" ];
};
config.Entrypoint = [ "/bin/pad-archiver" ];
};
};
checks = {