2021-10-30 09:50:23 -03:00
|
|
|
# Fury.io (apt and rpm repositories)
|
2021-06-21 02:13:49 +00:00
|
|
|
|
2021-09-22 23:30:16 -03:00
|
|
|
!!! success "GoReleaser Pro"
|
2024-01-17 08:35:28 -03:00
|
|
|
|
|
|
|
The fury.io publisher is available only in [GoReleaser Pro feature](/pro/).
|
2021-09-22 23:30:16 -03:00
|
|
|
|
2021-09-23 00:39:28 -03:00
|
|
|
You can easily create `deb` and `yum` repositories on [fury.io][fury] using GoReleaser.
|
2021-06-21 02:13:49 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
First, you need to create an account on [fury.io][fury] and get a push token.
|
|
|
|
|
2022-09-17 00:13:09 -03:00
|
|
|
Then, you need to pass your account name to GoReleaser and have your push token
|
|
|
|
as an environment variable named `FURY_TOKEN`:
|
2021-06-21 02:13:49 +00:00
|
|
|
|
|
|
|
```yaml
|
2021-12-23 01:52:01 +01:00
|
|
|
# .goreleaser.yaml
|
2021-06-21 02:13:49 +00:00
|
|
|
furies:
|
2024-01-17 08:35:28 -03:00
|
|
|
- account: myaccount
|
2021-06-21 02:13:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
This will automatically upload all your `deb` and `rpm` files.
|
|
|
|
|
|
|
|
## Customization
|
|
|
|
|
|
|
|
You can also have plenty of customization options:
|
|
|
|
|
|
|
|
```yaml
|
2021-12-23 01:52:01 +01:00
|
|
|
# goreleaser.yaml
|
2021-06-21 02:13:49 +00:00
|
|
|
|
|
|
|
furies:
|
2024-01-17 08:35:28 -03:00
|
|
|
- # fury.io account.
|
2021-06-21 02:13:49 +00:00
|
|
|
# Config is skipped if empty
|
2022-08-03 15:07:38 -03:00
|
|
|
account: "{{ .Env.FURY_ACCOUNT }}"
|
|
|
|
|
2022-09-17 00:13:09 -03:00
|
|
|
# Skip the announcing feature in some conditions, for instance, when
|
|
|
|
# publishing patch releases.
|
2023-04-02 17:16:21 -03:00
|
|
|
# Any value different of 'true' will be considered 'false'.
|
2022-09-17 00:13:09 -03:00
|
|
|
#
|
2023-04-02 17:16:21 -03:00
|
|
|
# Templates: allowed
|
2022-08-03 15:07:38 -03:00
|
|
|
skip: "{{gt .Patch 0}}"
|
2021-06-21 02:13:49 +00:00
|
|
|
|
2022-04-20 00:34:24 +02:00
|
|
|
# Environment variable name to get the push token from.
|
2022-09-17 00:13:09 -03:00
|
|
|
# You might want to change it if you have multiple fury configurations for
|
|
|
|
# some reason.
|
|
|
|
#
|
2023-04-02 17:16:21 -03:00
|
|
|
# Default: 'FURY_TOKEN'
|
2021-06-21 02:13:49 +00:00
|
|
|
secret_name: MY_ACCOUNT_FURY_TOKEN
|
|
|
|
|
|
|
|
# IDs to filter by.
|
2022-09-17 00:13:09 -03:00
|
|
|
# configurations get uploaded.
|
2021-06-21 02:39:29 +00:00
|
|
|
ids:
|
|
|
|
- packages
|
2021-06-21 02:13:49 +00:00
|
|
|
|
|
|
|
# Formats to upload.
|
|
|
|
# Available options are `deb` and `rpm`.
|
2023-04-02 17:16:21 -03:00
|
|
|
#
|
|
|
|
# Default: ['deb', 'rpm']
|
2021-06-21 02:39:29 +00:00
|
|
|
formats:
|
|
|
|
- deb
|
2021-06-21 02:13:49 +00:00
|
|
|
```
|
|
|
|
|
2021-10-30 09:59:18 -03:00
|
|
|
[fury]: https://gemfury.com
|
2022-04-20 00:34:24 +02:00
|
|
|
|
2023-03-01 01:45:52 -03:00
|
|
|
!!! tip
|
2024-01-17 08:35:28 -03:00
|
|
|
|
2023-03-01 01:45:52 -03:00
|
|
|
Learn more about the [name template engine](/customization/templates/).
|