Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GoReleaser: Release and Distribute Go Application

micnncim
April 19, 2019

GoReleaser: Release and Distribute Go Application

golang.tokyo #23 LT

micnncim

April 19, 2019
Tweet

More Decks by micnncim

Other Decks in Technology

Transcript

  1. GoReleaser:
    Release and Distribute
    Go Application
    @micnncim
    golang.tokyo #23 LT

    View Slide

  2. University Student
    Software Engineer @Arriv
    $ whoami

    View Slide

  3. Deliver Go binaries
    as fast and easily as possible.
    GoReleaser

    View Slide

  4. Cross Compile
    Single Binary
    Why Go?

    View Slide

  5. $ go get
    GitHub Release
    How to release
    Go application?

    View Slide

  6. $ go get

    View Slide

  7. $ go get

    View Slide

  8. Gopher
    User
    $ go get

    View Slide

  9. HEAD unstable
    Go
    $ go get

    View Slide

  10. GitHub Releases

    View Slide

  11. GitHub Releases

    View Slide

  12. Gopher
    User
    GitHub Releases

    View Slide

  13. curl + tar PATH
    GitHub Releases
    DL
    PATH

    View Slide

  14. stable
    Package Manager

    View Slide

  15. macOS

    View Slide

  16. Linux

    View Slide

  17. Windows

    View Slide

  18. Gopher
    User
    Package Manager

    View Slide

  19. Formula
    Package Manager

    View Slide

  20. GoReleaser

    View Slide

  21. .goreleaser.yml
    goreleaser
    How to Use

    View Slide

  22. gox
    Cross Compilation &
    Release

    View Slide

  23. Homebrew, Snappy, Scoop
    deb, rpm
    Package Manager

    View Slide

  24. YAML Formula
    Homebrew Formula

    View Slide

  25. YAML Formula
    Homebrew Formula

    View Slide

  26. Auto-update Formulae

    View Slide

  27. Auto-update Formulae

    View Slide

  28. git.io CI
    CI Integration
    tag push hook

    View Slide

  29. CircleCI

    View Slide

  30. rhysd/go-github-selfupdate
    motemen/gobump
    git-chglog/git-chglog
    hashicorp/go-version
    Recommended
    Partners

    View Slide

  31. Thank you!
    @micnncim

    View Slide