Skip to content

Commit

Permalink
release workflow: publish deb packages to SOS (#544)
Browse files Browse the repository at this point in the history
# Description

We publish Debian packages to SOS for users to install through the `apt`
package manager.
  • Loading branch information
sauterp authored Oct 3, 2023
1 parent 5b1db19 commit 22291d8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
release_github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
registry_username: ${{ secrets.DOCKERHUB_USERNAME }}
registry_password: ${{ secrets.DOCKERHUB_TOKEN }}
exoscale_api_key: ${{ secrets.SOS_PKG_BUCKET_KEY }}
exoscale_api_secret: ${{ secrets.SOS_PKG_BUCKET_SECRET }}

- run: echo "version_tag=$(make get-version-tag)" >> $GITHUB_OUTPUT
id: get-version-tag
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ contrib
*.snap
*.xdelta3
go.work
.aptlydata
10 changes: 10 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ nfpms:
maintainer: Exoscale Support <[email protected]>
description: Manage easily your Exoscale infrastructure from the command-line.
license: Apache 2.0
id: nfpms
formats:
- deb
- rpm
Expand Down Expand Up @@ -125,3 +126,12 @@ scoops:
owner: exoscale
name: cli
branch: master

publishers:
- name: aptly
env:
- AWS_ACCESS_KEY_ID={{ .Env.EXOSCALE_API_KEY }}
- AWS_SECRET_ACCESS_KEY={{ .Env.EXOSCALE_API_SECRET }}
ids:
- nfpms
cmd: ./go.mk/scripts/publish-deb-artifact-to-sos.sh {{ .ArtifactPath }} exoscale-packages deb/cli 10
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## UNRELEASED

- release workflow: publish deb packages to SOS #544
- aur releases: skip pgp check #547

## 1.74.0
Expand Down
2 changes: 1 addition & 1 deletion go.mk

0 comments on commit 22291d8

Please sign in to comment.