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 a8ca6cb commit 46fc464
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci-scripts/goreleaser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ GORELEASER_CONFIG=".goreleaser.yml"
if [ -n "$CI_COMMIT_TAG" ] && echo "$CI_COMMIT_TAG" | grep -qv '~'; then
GORELEASER_CONFIG=".goreleaser-release.yml"
fi
goreleaser release -f $GORELEASER_CONFIG --release-notes /tmp/shared/release.md
goreleaser release -f $GORELEASER_CONFIG --release-notes ../shared/release.md
ls -l results
15 changes: 3 additions & 12 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ build_migratedb:
prerelease:
stage: release
image:
name: docker:stable
name: goreleaser/goreleaser
entrypoint: [ "" ]
services:
- docker:dind
only:
Expand All @@ -81,17 +82,7 @@ prerelease:
DOCKER_REGISTRY: https://index.docker.io/v1/
GODIR: /go/src/github.com/oidc-mytoken/server
script:
- docker run --rm --privileged
-v $PWD:/$GODIR
-w $GODIR
-v "${PWD}/../shared":/tmp/shared
-v /var/run/docker.sock:/var/run/docker.sock
-e DOCKER_USERNAME
-e DOCKER_PASSWORD
-e DOCKER_REGISTRY
-e GITHUB_TOKEN
--entrypoint=$GODIR/.gitlab-ci-scripts/release.sh
goreleaser/goreleaser
- .gitlab-ci-scripts/release.sh

deploy-dev:
stage: deploy
Expand Down

0 comments on commit 46fc464

Please sign in to comment.