mirror of
https://github.com/unpoller/unpoller.git
synced 2026-10-17 11:45:41 +02:00
adds signing to packages
add ruby to so we can have packagecloud uploads break up builds so we only publish amd64 artifacts to packagecloud, maybe fix packagecloud uploads archives needs separate ids
This commit is contained in:
@@ -23,6 +23,8 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- run: git fetch --force --tags
|
||||
- name: Install RPM tooling
|
||||
run: sudo apt-get install -y rpm
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v1
|
||||
- name: Set up Docker Buildx
|
||||
@@ -34,12 +36,26 @@ jobs:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Import GPG key
|
||||
id: import_gpg
|
||||
uses: crazy-max/ghaction-import-gpg@v5
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.PACKAGECLOUD_SIGNING_GPG }}
|
||||
- name: "Setup Ruby for packagecloud uploads"
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '2.7'
|
||||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
||||
- name: "Install packagecloud gem"
|
||||
run: gem install package_cloud
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '>=1.19.3'
|
||||
cache: true
|
||||
# More assembly might be required: Docker logins, GPG, etc. It all depends
|
||||
# on your needs.
|
||||
- name: "make key file"
|
||||
run: "echo '${{ secrets.PACKAGECLOUD_SIGNING_GPG }}' > /tmp/key.gpg"
|
||||
- uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
# either 'goreleaser' (default) or 'goreleaser-pro':
|
||||
@@ -53,4 +69,6 @@ jobs:
|
||||
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
||||
DOCKER_REGISTRY: ${{ env.DOCKER_REGISTRY }}
|
||||
DOCKER_IMAGE_NAME: ${{ env.DOCKER_IMAGE_NAME }}
|
||||
|
||||
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
|
||||
PACKAGECLOUD_SIGNING_GPG: /tmp/key.gpg
|
||||
PACKAGECLOUD_SIGNING_KEY_ID: ${{ steps.import_gpg.outputs.keyid }}
|
||||
|
||||
Reference in New Issue
Block a user