Skip to content
Snippets Groups Projects
Select Git revision
  • e9ba0cfda91b116e91d056d6c46f8959ae242ce2
  • prerel default protected
  • remove-unused-upload
  • dependabot/go_modules/github.com/valyala/fasthttp-1.65.0
  • dependabot/go_modules/github.com/redis/go-redis/v9-9.12.1
  • dependabot/go_modules/golang.org/x/crypto-0.41.0
  • dependabot/go_modules/golang.org/x/mod-0.27.0
  • dependabot/go_modules/github.com/coreos/go-oidc/v3-3.15.0
  • dependabot/go_modules/github.com/olekukonko/tablewriter-1.0.9
  • dependabot/go_modules/github.com/gofiber/fiber/v2-2.52.9
  • dependabot/go_modules/github.com/gofiber/template/mustache/v2-2.0.14
  • dependabot/go_modules/github.com/go-sql-driver/mysql-1.9.3
  • dependabot/go_modules/github.com/zachmann/go-oidfed-0.4.0
  • master protected
  • dependabot/go_modules/github.com/coreos/go-oidc/v3-3.8.0
  • dependabot/go_modules/golang.org/x/mod-0.14.0
  • dependabot/go_modules/github.com/gofiber/fiber/v2-2.51.0
  • dependabot/go_modules/github.com/valyala/fasthttp-1.51.0
  • dependabot/go_modules/golang.org/x/oauth2-0.15.0
  • dependabot/go_modules/github.com/lestrrat-go/jwx-1.2.27
  • dependabot/go_modules/golang.org/x/term-0.15.0
  • v0.10.1
  • v0.10.0
  • v0.9.2
  • v0.9.1
  • v0.9.0
  • v0.8.1
  • v0.8.0
  • v0.7.2
  • v0.7.1
  • v0.7.0
  • v0.6.1
  • v0.6.1-c
  • v0.6.1-b
  • v0.6.1-a
  • v0.6.0
  • v0.5.4
  • v0.5.3
  • v0.5.2
  • v0.5.1
  • v0.5.0
41 results

.goreleaser.yml

Blame
  • .goreleaser.yml 4.94 KiB
    project_name: mytoken-server
    before:
      hooks:
        - go mod tidy
    dist: results
    builds:
      - id: server
        main: ./cmd/mytoken-server
        binary: mytoken-server
        env:
          - CGO_ENABLED=0
        goos:
          - linux
        flags:
          - -trimpath
        mod_timestamp: '{{ .CommitTimestamp }}'
      - id: setup
        main: ./cmd/mytoken-server/mytoken-setup
        binary: mytoken-setup
        env:
          - CGO_ENABLED=0
        goos:
          - linux
        flags:
          - -trimpath
        mod_timestamp: '{{ .CommitTimestamp }}'
      - id: migratedb
        main: ./cmd/mytoken-server/mytoken-migratedb
        binary: mytoken-migratedb
        env:
          - CGO_ENABLED=0
        goos:
          - linux
        flags:
          - -trimpath
        mod_timestamp: '{{ .CommitTimestamp }}'
    archives:
      - replacements:
          darwin: macOS
          386: 32-bit
          amd64: 64-bit
        format_overrides:
          - goos: windows
            format: zip
    nfpms:
      - id: server-pkg
        package_name: mytoken-server
        replacements:
          386: i386
        file_name_template: "{{ .PackageName }}_{{ .Version }}_{{ .Arch }}"
        builds:
          - server
        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
        formats:
          - deb
          - rpm
        release: "1"
        section: misc
        bindir: /usr/bin
        contents:
          - src: config/example-config.yaml
            dst: /etc/mytoken/example-config.yaml
            type: config
          - src: config/mytoken.service
            dst: /etc/systemd/system/mytoken.service
          - dst: /var/log/mytoken
            type: dir