Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
m-team
oidc
mytoken
server
Commits
86999fb2
Commit
86999fb2
authored
3 years ago
by
Gabriel Zachmann
Browse files
Options
Downloads
Patches
Plain Diff
build packages with goreleaser
parent
ccd6e569
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
.goreleaser.yml
+94
-0
94 additions, 0 deletions
.goreleaser.yml
config/mytoken.service
+17
-0
17 additions, 0 deletions
config/mytoken.service
with
112 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
86999fb2
...
...
@@ -8,3 +8,4 @@ config/config.yaml
IP2LOCATION-LITE-DB1.IPV6.BIN
/cmd/test
generateDDL.sh
dist/
This diff is collapsed.
Click to expand it.
.goreleaser.yml
0 → 100644
+
94
−
0
View file @
86999fb2
project_name
:
mytoken-server
before
:
hooks
:
-
go mod tidy
builds
:
-
id
:
server
main
:
./cmd/mytoken-server/main.go
binary
:
mytoken-server
env
:
-
CGO_ENABLED=0
goos
:
-
linux
# - windows
# - darwin
-
id
:
setup
main
:
./cmd/mytoken-server/mytoken-setup/setup.go
binary
:
mytoken-setup
env
:
-
CGO_ENABLED=0
goos
:
-
linux
-
id
:
garbage
main
:
./cmd/mytoken-server/mytoken-dbGarbageCollector/main.go
binary
:
mytoken-dbgc
env
:
-
CGO_ENABLED=0
goos
:
-
linux
archives
:
-
replacements
:
darwin
:
Darwin
linux
:
Linux
windows
:
Windows
386
:
i386
amd64
:
x86_64
nfpms
:
-
id
:
server-pkg
package_name
:
mytoken-server
builds
:
-
server
homepage
:
https://mytoken-doc.data.kit.edu/server/intro
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
formats
:
# - apk
-
deb
-
rpm
release
:
1
section
:
misc
empty_folders
:
-
/var/log/mytoken
contents
:
-
src
:
config/example-config.yaml
dst
:
/etc/mytoken/example-config.yaml
type
:
config
-
src
:
config/mytoken.service
dst
:
/etc/systemd/system/mytoken.service
-
id
:
setup-pkg
package_name
:
mytoken-server-setup
builds
:
-
setup
homepage
:
https://mytoken-doc.data.kit.edu/server/intro
maintainer
:
Gabriel Zachmann <gabriel.zachmann@kit.edu>
description
:
A setup utility for the mytoken-server
license
:
MIT
formats
:
-
deb
-
rpm
release
:
1
section
:
misc
-
id
:
garbage-pkg
package_name
:
mytoken-server-dbgc
builds
:
-
garbage
homepage
:
https://mytoken-doc.data.kit.edu/server/intro
maintainer
:
Gabriel Zachmann <gabriel.zachmann@kit.edu>
description
:
A garbage collector for the mytoken database. It deletes expired entries.
license
:
MIT
formats
:
-
deb
-
rpm
release
:
1
section
:
misc
checksum
:
name_template
:
'
checksums.txt'
snapshot
:
name_template
:
"
{{
.Tag
}}-next"
changelog
:
sort
:
asc
filters
:
exclude
:
-
'
^docs:'
-
'
^test:'
This diff is collapsed.
Click to expand it.
config/mytoken.service
0 → 100644
+
17
−
0
View file @
86999fb2
[Unit]
Description
=
mytoken
After
=
network.target auditd.service
[Service]
ExecStart
=
/usr/local/bin/mytoken-server
ExecReload
=
/bin/kill -HUP $MAINPID
WorkingDirectory
=
/
StandardOutput
=
inherit
StandardError
=
inherit
KillMode
=
process
Restart
=
always
RestartPreventExitStatus
=
255
Type
=
simple
[Install]
WantedBy
=
multi-user.target
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment