[Git][root/netboxadm][main] feat(ci): add basic goreleaser config

Fernando K pushed to branch main at Root / Netboxadm Commits: 9ee1077e by Fernando Monteiro Kiotheka at 2025-07-30T15:30:17-03:00 feat(ci): add basic goreleaser config - - - - - 2 changed files: - .gitlab-ci.yml - + .goreleaser.yaml Changes: ===================================== .gitlab-ci.yml ===================================== @@ -1,6 +1,7 @@ image: golang:1.24.4 stages: - test + - release format: stage: test before_script: @@ -10,3 +11,17 @@ format: - go fmt $(go list ./... | grep -v /vendor/) - go vet $(go list ./... | grep -v /vendor/) - go test -race $(go list ./... | grep -v /vendor/) +release: + stage: release + image: + name: goreleaser/goreleaser + entrypoint: [""] + rules: + - if: $CI_COMMIT_TAG + variables: + GIT_DEPTH: 0 + before_script: + - go env -w GOPRIVATE="gitlab.c3sl.ufpr.br/*" + - git config --global url."https://oauth2:${CI_VMBACKUPS_PASSWORD}@gitlab.c3sl.ufpr.br/".insteadOf "https://gitlab.c3sl.ufpr.br/" + script: + - goreleaser release --clean ===================================== .goreleaser.yaml ===================================== @@ -0,0 +1,13 @@ +gitlab_urls: + api: https://gitlab.c3sl.ufpr.br.com/api/v4/ + download: https://gitlab.c3sl.ufpr.br + + # set to true if you use a self-signed certificate + skip_tls_verify: false + + # set to true if you want to upload to the Package Registry rather than attachments + # Only works with GitLab 13.5+ + use_package_registry: true + + # Set this if you set GITLAB_TOKEN to the value of CI_JOB_TOKEN. + use_job_token: true View it on GitLab: https://gitlab.c3sl.ufpr.br/root/netboxadm/-/commit/9ee1077eca9014efe0f7c1f7... -- View it on GitLab: https://gitlab.c3sl.ufpr.br/root/netboxadm/-/commit/9ee1077eca9014efe0f7c1f7... You're receiving this email because of your account on gitlab.c3sl.ufpr.br.
participantes (1)
-
Fernando K (@fmkiotheka)