scim/.gitlab-ci.yml
2022-08-19 12:01:14 +02:00

25 lines
496 B
YAML

stages:
- release
release:
stage: release
image: docker:stable
services:
- docker:dind
variables:
GIT_DEPTH: 0
WORKDIR: /go/src/lab.libreho.st/libre.sh/scim/scim
only:
refs:
- tags
script: |
docker run --rm --privileged \
-v $PWD:$WORKDIR \
-w $WORKDIR \
-v /var/run/docker.sock:/var/run/docker.sock \
-e DOCKER_USERNAME -e DOCKER_PASSWORD \
-e GITLAB_TOKEN=$CI_JOB_TOKEN \
goreleaser/goreleaser release --rm-dist