Skip to content

Commit 5a92ce1

Browse files
committed
Fix docker upload image workflow
1 parent 50cb0c4 commit 5a92ce1

File tree

3 files changed

+59
-7
lines changed

3 files changed

+59
-7
lines changed

Diff for: .github/workflows/docker-ghcrio.yml

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
name: Upload Docker images to ghcr.io
22
on:
3-
workflow_run:
4-
workflows: ["Tests"]
5-
tags: [ 'v*' ]
6-
types:
7-
- completed
3+
release:
4+
types: [created]
85
jobs:
96
docker:
107
name: Build image
11-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
128
runs-on: ubuntu-latest
139
steps:
1410
- name: Check out code
@@ -28,7 +24,6 @@ jobs:
2824
type=semver,pattern={{major}}.{{minor}}
2925
type=semver,pattern={{major}}.{{minor}}.{{patch}}
3026
- name: Login to ghcr.io
31-
if: github.event_name != 'pull_request'
3227
uses: docker/login-action@v2
3328
with:
3429
registry: ghcr.io

Diff for: .github/workflows/packages-rockylinux-9.yaml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build packages for Rockylinux 9
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Tests"]
6+
branches: [ main ]
7+
types:
8+
- completed
9+
push:
10+
tags:
11+
- v.*
12+
jobs:
13+
build-packages-rockylinux-9:
14+
name: Build packages for Rockylinux 9
15+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
go:
20+
- ^1
21+
steps:
22+
- name: Set up Go
23+
uses: actions/setup-go@v3
24+
with:
25+
go-version: ${{ matrix.go }}
26+
- name: Set up Ruby for package_cloud uploader to work
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: '2.7' # Version range or exact version of a Ruby version to use, using semvers version range syntax.
30+
- name: Install packaging dependencies
31+
run: |
32+
sudo apt-get install libcairo2-dev mercurial pkg-config wget -y
33+
gem install package_cloud
34+
- name: Check out code into the Go module directory
35+
uses: actions/checkout@v3
36+
with:
37+
fetch-depth: 0
38+
- name: Set up QEMU
39+
uses: docker/setup-qemu-action@v2
40+
- name: Log in to GitHub Docker Registry
41+
uses: docker/login-action@v2
42+
with:
43+
registry: ghcr.io
44+
username: ${{ github.actor }}
45+
password: ${{ secrets.GITHUB_TOKEN }}
46+
- name: Create packages
47+
env:
48+
BUILD_PACKAGES: true
49+
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
50+
run: |
51+
wget "https://raw.githubusercontent.com/go-graphite/helper-scripts/main/build.sh" && chmod +x ./build.sh
52+
./build.sh carbonapi "rockylinux:9"

Diff for: CHANGES.md

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Changes
1717

1818
CHANGELOG
1919
---------
20+
**0.16.0.1**
21+
- [Build] Fix automation that builds docker images
22+
- [Build] Add rockylinux-9 packages (RHEL 9)
23+
- [Build] Update build version of golang to 1.19.4
24+
2025
**0.16.0**
2126
- [Improvement] Deprecate and remove carbonzipper binary (thx to @msaf1980)
2227
- [Improvement] Remove deprecated carbonsearch support

0 commit comments

Comments
 (0)