move update script to path

This commit is contained in:
Tim Schubert 2022-05-21 12:33:38 +02:00
parent ce347c2bf9
commit 53532617c2
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
2 changed files with 2 additions and 4 deletions

View file

@ -2,6 +2,4 @@ FROM alpine/git
RUN apk add --no-cache curl
ADD update /update
ENTRYPOINT /bin/sh
ADD update /bin/update

View file

@ -12,5 +12,5 @@ update:
- git config --global user.email "git@git.fginfo.tu-bs.de"
- git config --global user.name "Gitlab CI"
script:
- /update < pads.txt
- update < pads.txt
- git push "https://gitlab-ci-token:${CI_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_REF_NAME}" -o skip-ci