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
|
||||
ENTRYPOINT /bin/sh
|
||||
COPY go.mod go.sum ./
|
||||
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
|
||||
rules:
|
||||
- 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:
|
||||
- ./pad-archiver < pads.txt
|
||||
- git push "https://gitlab-ci-token:${CI_ACCESS_TOKEN}@${CI_REPOSITORY_URL#*@}" "HEAD:${CI_COMMIT_REF_NAME}" -o skip-ci
|
||||
- pad-archiver --push --remote "${CI_REPOSITORY_URL#*@}" --username gitlab-ci-token --password "${CI_ACCESS_TOKEN} < pads.txt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue