Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev: upload debs and rpms to Packagecloud #4010

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}

- name: Upload nfpms
run: |
gem install --no-document --user-install --bindir ~/.local/bin package_cloud
export CLICOLOR_FORCE=1
# deb: armv6 clashes with armv7, no loong64/mips64/riscv64 support (mips64le is ok)
~/.local/bin/package_cloud push ${{ github.repository }}/any/any $(ls -1 dist/*.deb | grep -vwE 'armv6|loong64|mips64|riscv64')
~/.local/bin/package_cloud push ${{ github.repository }}/rpm_any/rpm_any dist/*.rpm
env:
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}

docker-release:
needs: release
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ release:
github:
owner: golangci
name: golangci-lint
footer: >-
apt and dnf/yum package repositories are available at
[Packagecloud](https://packagecloud.io/golangci/golangci-lint).

builds:
- binary: golangci-lint
Expand Down