use project url to build remote url

This commit is contained in:
Tim Schubert 2022-06-02 21:39:07 +02:00
parent 1fbca6145d
commit 64e19eab70
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 4 additions and 4 deletions

View file

@ -9,4 +9,4 @@ update:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
script:
- pad-archiver --push --remote origin --username gitlab-ci-token --password "${CI_ACCESS_TOKEN}" < pads.txt
- pad-archiver --push --url "${CI_PROJECT_URL}.git" --username gitlab-ci-token --password "${CI_ACCESS_TOKEN}" < pads.txt

View file

@ -161,9 +161,9 @@ func main() {
"password",
)
remoteUrl := flag.String(
"remote",
defaultRemoteName,
"remote",
"url",
"",
"url of remote",
)
flag.Parse()