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"
|
|
|
|
The fury.io publisher is a [GoReleaser Pro feature](/pro/).
|
|
|
|
You might be able to reproduce some of its behavior on GoReleaser OSS using [custom publishers](/customization/publishers/).
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
Then, you need to pass your account name to GoReleaser and have your push token as an environment variable named `FURY_TOKEN`:
|
|
|
|
|
|
|
|
```yaml
|
2021-12-23 01:52:01 +01:00
|
|
|
# .goreleaser.yaml
|
2021-06-21 02:13:49 +00:00
|
|
|
furies:
|
|
|
|
- account: myaccount
|
|
|
|
```
|
|
|
|
|
|
|
|
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:
|
|
|
|
-
|
|
|
|
# fury.io account.
|
|
|
|
# Config is skipped if empty
|
|
|
|
account: my-account
|
|
|
|
|
2022-04-20 00:34:24 +02:00
|
|
|
# Environment variable name to get the push token from.
|
2021-06-21 02:13:49 +00:00
|
|
|
# You might want to change it if you have multiple fury configurations for some reason.
|
|
|
|
# Defaults to `FURY_TOKEN`.
|
|
|
|
secret_name: MY_ACCOUNT_FURY_TOKEN
|
|
|
|
|
|
|
|
# IDs to filter by.
|
|
|
|
# Defaults to empty, which means all packages created by all nfpm 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`.
|
|
|
|
# Defaults to `deb` and `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
|
|
|
|