-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build packages for Rockylinux 9 | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["Tests"] | ||
branches: [ main ] | ||
types: | ||
- completed | ||
push: | ||
tags: | ||
- v.* | ||
jobs: | ||
build-packages-rockylinux-9: | ||
name: Build packages for Rockylinux 9 | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: | ||
- ^1 | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
- name: Set up Ruby for package_cloud uploader to work | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: '2.7' # Version range or exact version of a Ruby version to use, using semvers version range syntax. | ||
- name: Install packaging dependencies | ||
run: | | ||
sudo apt-get install libcairo2-dev mercurial pkg-config wget -y | ||
gem install package_cloud | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Log in to GitHub Docker Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create packages | ||
env: | ||
BUILD_PACKAGES: true | ||
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} | ||
run: | | ||
wget "https://raw.githubusercontent.com/go-graphite/helper-scripts/main/build.sh" && chmod +x ./build.sh | ||
./build.sh carbonapi "rockylinux:9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters