update container
This commit is contained in:
parent
e545d32aed
commit
ed2d777c77
2 changed files with 10 additions and 9 deletions
13
Dockerfile
13
Dockerfile
|
@ -1,6 +1,11 @@
|
||||||
FROM alpine/git@sha256:8f4173e730f0ae6df38e35695120ab77a0c3e0593d34b6cbe7ee585497f61013
|
FROM golang:1.18
|
||||||
|
|
||||||
ADD ./pad-archiver /pad-archiver
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Override ENTRYPOINT of alpine/git
|
COPY go.mod go.sum ./
|
||||||
ENTRYPOINT /bin/sh
|
RUN go mod download && go mod verify
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
RUN go build -v -o /usr/local/bin/pad-archiver ./...
|
||||||
|
|
||||||
|
CMD ["pad-archiver"]
|
||||||
|
|
|
@ -8,9 +8,5 @@ update:
|
||||||
stage: update
|
stage: update
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||||
before_script:
|
|
||||||
- git config --global user.email "git@git.fginfo.tu-bs.de"
|
|
||||||
- git config --global user.name "Gitlab CI"
|
|
||||||
script:
|
script:
|
||||||
- ./pad-archiver < pads.txt
|
- pad-archiver --push --remote "${CI_REPOSITORY_URL#*@}" --username gitlab-ci-token --password "${CI_ACCESS_TOKEN} < pads.txt
|
||||||
- git push "https://gitlab-ci-token:${CI_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_REF_NAME}" -o skip-ci
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue