Skip to content

Commit

Permalink
Fix docker upload image workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Civil committed Dec 9, 2022
1 parent 50cb0c4 commit 5a92ce1
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/docker-ghcrio.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
name: Upload Docker images to ghcr.io
on:
workflow_run:
workflows: ["Tests"]
tags: [ 'v*' ]
types:
- completed
release:
types: [created]
jobs:
docker:
name: Build image
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand All @@ -28,7 +24,6 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}.{{minor}}.{{patch}}
- name: Login to ghcr.io
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/packages-rockylinux-9.yaml
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"
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ Changes

CHANGELOG
---------
**0.16.0.1**
- [Build] Fix automation that builds docker images
- [Build] Add rockylinux-9 packages (RHEL 9)
- [Build] Update build version of golang to 1.19.4

**0.16.0**
- [Improvement] Deprecate and remove carbonzipper binary (thx to @msaf1980)
- [Improvement] Remove deprecated carbonsearch support
Expand Down

0 comments on commit 5a92ce1

Please sign in to comment.