๐Ÿ“ฆ navidrome / ci-goreleaser

๐Ÿ“„ README.md ยท 43 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43# Navidrome CI-GoReleaser


[![Docker Version](https://img.shields.io/docker/v/deluan/ci-goreleaser/latest?logo=docker)](https://hub.docker.com/r/deluan/ci-goreleaser/tags)
[![Repo Version](https://img.shields.io/docker/v/deluan/ci-goreleaser?label=version&sort=semver&logo=github)](https://hub.docker.com/r/deluan/ci-goreleaser/tags)
[![Goreleaser](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fnavidrome%2Fci-goreleaser%2Fmaster%2F.versions&query=%24.GORELEASER_VERSION&label=Goreleaser&color=brightgreen)](https://github.com/goreleaser/goreleaser/releases)
[![TagLib](https://img.shields.io/badge/dynamic/toml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fnavidrome%2Fci-goreleaser%2Fmaster%2F.versions&query=%24.TAGLIB_VERSION&label=TagLib&color=brightgreen)](https://github.com/taglib/taglib/releases)

Docker image used to generate Navidrome's binaries.

**NOTE:** If you want to install [Navidrome](https://www.navidrome.org), please read the [documentation](https://www.navidrome.org/docs/installation/). **Don't try to use the images from this repository!**

## Usage

Versions used in the image build are defined in the `.versions` file. To update them, call `make update-versions`.
If there are any changes, you need to build and push a new image with `make release version=X.X.X-X`. Don't forget
to commit the updated `.versions` file.

The version represents the Go version + a counter. So if the Go version is `1.13.7` and this is
the first release based on that, the version should be `1.13.7-1`. You can check the latest release with `make latest-tag`

### Manual release

```bash
make release version=1.13.7-1 
```

This will build the image in the local workstation, tag and push the image.

## macOS

The macOS part of the build requires the macOS SDK.

If you need to build a different version than it is available in this repo, you can create it with the following instructions:

1) Register for an Apple developer account, then download `Xcode_8.3.3.xip` from: https://developer.apple.com/download/more/
2) Unpack the downloaded xip file in the ~/Downloads folder
3) Run `create_osx_sdk.sh` to create the MacOSX10.12.sdk tarfile. You can delete downloaded xip and the `Xcode` files after the tarfile is created.

## Credits:

Based on https://github.com/bep/dockerfiles