Skip to content
Snippets Groups Projects
Commit 5d3255b2 authored by Gabriel Zachmann's avatar Gabriel Zachmann Committed by Gabriel Zachmann
Browse files

[ci] improve release/prerelease

parent 6cbbda3b
No related branches found
No related tags found
No related merge requests found
#REPO_TARGET="$(if echo $CI_COMMIT_TAG | grep -q '-'; then echo '/'; else echo '/prerel'; fi)"
REPO_TARGET="/prerel"
# ssh-key-script
[ -e /tmp/ssh-private-keys/${REPO_USER} ] && {
eval $(ssh-agent -s)
......
......@@ -68,7 +68,6 @@ prerelease:
GIT_DEPTH: 0
REPO_HOST: repo.data.kit.edu
REPO_USER: cicd
REPO_TARGET: /prerel
script:
- .gitlab-ci-scripts/goreleaser.sh
- .gitlab-ci-scripts/upload.sh
......
......@@ -11,8 +11,8 @@ builds:
- CGO_ENABLED=0
goos:
- linux
gcflags:
- all=-trimpath={{.Env.GOPATH}}
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
- id: setup
main: ./cmd/mytoken-server/mytoken-setup
......@@ -21,8 +21,8 @@ builds:
- CGO_ENABLED=0
goos:
- linux
gcflags:
- all=-trimpath={{.Env.GOPATH}}
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
- id: migratedb
main: ./cmd/mytoken-server/mytoken-migratedb
......@@ -31,8 +31,8 @@ builds:
- CGO_ENABLED=0
goos:
- linux
gcflags:
- all=-trimpath={{.Env.GOPATH}}
flags:
- -trimpath
mod_timestamp: '{{ .CommitTimestamp }}'
archives:
- replacements:
......@@ -50,7 +50,7 @@ nfpms:
file_name_template: "{{ .PackageName }}_{{ .Version }}_{{ .Arch }}"
builds:
- server
homepage: https://mytoken-doc.data.kit.edu/server/intro
homepage: https://mytoken-docs.data.kit.edu/server
maintainer: Gabriel Zachmann <gabriel.zachmann@kit.edu>
description: Mytoken is a central web service with the goal to easily obtain OpenID Connect access tokens across devices.
license: MIT
......@@ -80,7 +80,7 @@ nfpms:
file_name_template: "{{ .PackageName }}_{{ .Version }}_{{ .Arch }}"
builds:
- setup
homepage: https://mytoken-doc.data.kit.edu/server/intro
homepage: https://mytoken-docs.data.kit.edu/server
maintainer: Gabriel Zachmann <gabriel.zachmann@kit.edu>
description: A setup utility for the mytoken-server
license: MIT
......@@ -102,7 +102,7 @@ nfpms:
file_name_template: "{{ .PackageName }}_{{ .Version }}_{{ .Arch }}"
builds:
- migratedb
homepage: https://mytoken-doc.data.kit.edu/server/intro
homepage: https://mytoken-docs.data.kit.edu/server
maintainer: Gabriel Zachmann <gabriel.zachmann@kit.edu>
description: A tool for migrating the database between versions
license: MIT
......@@ -173,7 +173,11 @@ checksum:
snapshot:
name_template: "{{ .Tag }}-next"
release:
prerelease: auto
draft: true
github:
owner: oidc-mytoken
name: server
name_template: "{{.ProjectName}} {{.Version}}"
changelog:
sort: asc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment