Enable use in GitLab CI
This commit is contained in:
parent
d14917323d
commit
8f2df84d66
2 changed files with 18 additions and 7 deletions
17
README.md
17
README.md
|
@ -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*
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue