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: rules:
- if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "schedule"
script: 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", "password",
) )
remoteUrl := flag.String( remoteUrl := flag.String(
"remote", "url",
defaultRemoteName, "",
"remote", "url of remote",
) )
flag.Parse() flag.Parse()