diff --git a/.gitlab-ci-scripts/release.sh b/.gitlab-ci-scripts/release.sh index cbe8b39f..8f492297 100755 --- a/.gitlab-ci-scripts/release.sh +++ b/.gitlab-ci-scripts/release.sh @@ -2,8 +2,6 @@ set -e if [ -z "$CI_COMMIT_TAG" ]; then .gitlab-ci-scripts/set-prerel-version.sh; fi; -echo $DOCKER_USERNAME -echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER --password-stdin $DOCKER_REGISTRY .gitlab-ci-scripts/goreleaser.sh .gitlab-ci-scripts/upload.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eabdf7b7..aa9cda24 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -81,6 +81,8 @@ prerelease: REPO_USER: cicd DOCKER_REGISTRY: https://index.docker.io/v1/ GODIR: /go/src/github.com/oidc-mytoken/server + before_script: + - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin "$DOCKER_REGISTRY" script: - .gitlab-ci-scripts/release.sh