From ee49396f2833b5751a046dc6ba3c29a0cae66bdc Mon Sep 17 00:00:00 2001 From: Miguel Alvarez Date: Wed, 24 Apr 2024 12:52:41 +0100 Subject: [PATCH 1/3] Fix changelog --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e50b36b1..de442033 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # rb-manager CHANGELOG -## 1.7.4 +## 1.7.3 +dvanhoucke +- add ipaddress sync for minio + +## 1.7.3 vimesa - Fix druid tiers From 07bd46dbc071bf592e3812e72e2121876e61d7b2 Mon Sep 17 00:00:00 2001 From: Miguel Alvarez Date: Wed, 24 Apr 2024 12:55:46 +0100 Subject: [PATCH 2/3] Fix metadata.rb --- CHANGELOG.md | 2 +- resources/metadata.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de442033..84ff1b03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # rb-manager CHANGELOG -## 1.7.3 +## 1.7.4 dvanhoucke - add ipaddress sync for minio diff --git a/resources/metadata.rb b/resources/metadata.rb index 0a5fc604..d44f66ab 100644 --- a/resources/metadata.rb +++ b/resources/metadata.rb @@ -4,7 +4,7 @@ license 'All rights reserved' description 'Installs/Configures redborder manager' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '1.7.3' +version '1.7.4' depends 'chef-server' depends 'zookeeper' From a0d51b829d26b4475e8f42c5356fc9c13f029417 Mon Sep 17 00:00:00 2001 From: Miguel Alvarez Date: Wed, 24 Apr 2024 13:05:58 +0100 Subject: [PATCH 3/3] Add build rpm workflow --- .github/workflows/rpm.yml | 66 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 .github/workflows/rpm.yml diff --git a/.github/workflows/rpm.yml b/.github/workflows/rpm.yml new file mode 100644 index 00000000..0672d54f --- /dev/null +++ b/.github/workflows/rpm.yml @@ -0,0 +1,66 @@ +name: RPM Build and Upload + +on: + push: + branches: + - 'master' + - 'main' + +jobs: + build: + runs-on: ubuntu-latest + + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Create tag based on metadata.rb + id: create_tag + run: | + TAG=$(grep -o 'version\s*["'\''][^"'\'']*' ./resources/metadata.rb | sed 's/version\s*["'\'']//;s/["'\'']//') + echo "TAG=$TAG" >> $GITHUB_ENV + shell: bash + + - name: Set Version + run: echo "VERSION=${{ env.TAG }}" >> $GITHUB_ENV + + - name: Run Docker Container + run: docker run --privileged -d --name builder --network host rockylinux:9 /bin/sleep infinity + + - name: Install build tools RPM + run: | + docker cp ./ builder:/build + docker exec builder bash -c "yum install -y epel-release && yum install -y make git mock" + docker exec builder bash -c "rm -rf /etc/mock/default.cfg" + + - name: Setup SDK + run: | + docker exec builder bash -c "curl https://raw.githubusercontent.com/redBorder/repoinit/master/sdk9.cfg > /build/sdk9.cfg" + docker exec builder bash -c "echo \"config_opts['use_host_resolv'] = True\" >> /build/sdk9.cfg" + docker exec builder bash -c "ln -s /build/sdk9.cfg /etc/mock/default.cfg" + + - name: Build RPM using mock + run: | + docker exec builder bash -c "git config --global --add safe.directory /build" + docker exec builder bash -c "cd /build/ && VERSION=${{ env.TAG }} make rpm" + + - name: Copy RPMS + run: | + docker cp builder:/build/packaging/rpm/pkgs/. ./rpms + + - name: Delete non-.rpm files + run: | + find ./rpms -type f -not -name '*.rpm' -exec rm {} \; + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: ./rpms/* + tag_name: ${{ env.TAG }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file