Skip to content

Commit

Permalink
[ci] debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann committed Feb 7, 2024
1 parent eec6751 commit e60358b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
12 changes: 1 addition & 11 deletions .gitlab-ci-scripts/goreleaser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,5 @@ GORELEASER_CONFIG=".goreleaser.yml"
if [ -n "$CI_COMMIT_TAG" ] && echo "$CI_COMMIT_TAG" | grep -qv '~'; then
GORELEASER_CONFIG=".goreleaser-release.yml"
fi
BASEDIR=/go/src/github.com/oidc-mytoken/server
ls $PWD
docker run --rm --privileged \
-v "$PWD":"$BASEDIR" \
-w "$BASEDIR" \
-v "${PWD}/../shared":/tmp/shared \
-v /var/run/docker.sock:/var/run/docker.sock \
-e DOCKER_USERNAME -e DOCKER_PASSWORD \
-e GITHUB_TOKEN \
-e GORELEASER_CONFIG \
goreleaser/goreleaser release -f $GORELEASER_CONFIG --release-notes /tmp/shared/release.md
goreleaser release -f $GORELEASER_CONFIG --release-notes ../shared/release.md
ls -l results
9 changes: 3 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ build_migratedb:
prerelease:
stage: release
image:
name: docker:stable
services:
- docker:dind
name: goreleaser/goreleaser
# services:
# - docker:dind
only:
refs:
- tags
Expand All @@ -78,9 +78,6 @@ prerelease:
GIT_DEPTH: 0
REPO_HOST: repo.data.kit.edu
REPO_USER: cicd
before_script:
- apk add git
- apk add curl
script:
- if [ -z "$CI_COMMIT_TAG" ]; then .gitlab-ci-scripts/set-prerel-version.sh; fi;
- .gitlab-ci-scripts/goreleaser.sh
Expand Down

0 comments on commit e60358b

Please sign in to comment.