Last active
August 31, 2021 19:52
-
-
Save developer-guy/d3056b6d29e1137e989deb012fe45dbe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stages: | |
- release | |
goreleaser: | |
stage: release | |
image: docker:19.03.5 | |
variables: | |
DOCKER_API_VERSION: "1.35" | |
DOCKER_HOST: tcp://docker:2375 | |
DOCKER_TLS_CERTDIR: "" | |
services: | |
- alias: docker | |
name: docker:19.03.5-dind | |
script: | |
- | | |
docker container run --rm --privileged \ | |
-v $(pwd):/kink \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-w /kink \ | |
--entrypoint="/bin/sh" \ | |
-e GITLAB_TOKEN=$GITLAB_TOKEN \ | |
-e DOCKER_REGISTRY=$DOCKER_REGISTRY \ | |
-e DOCKER_USERNAME=$DOCKER_USERNAME \ | |
-e DOCKER_PASSWORD=$DOCKER_PASSWORD \ | |
goreleaser/goreleaser -c "make release" | |
only: | |
refs: | |
- tags |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment