Skip to content

Commit 51cc866

Browse files
Merge branch 'develop-2.x' into 2.x
2 parents 2c5e32a + d4f73ea commit 51cc866

File tree

37 files changed

+919
-446
lines changed

37 files changed

+919
-446
lines changed

.github/workflows/release-v2.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,13 @@ jobs:
230230
# The "move-ferron2-archive" is a custom command that moves the ZIP archive to be served by the download server
231231
ssh ferron-servers "sudo move-ferron2-archive ${{ env.FERRON_VERSION }} ${{ matrix.target }}"
232232
233-
# - name: Release Ferron to GitHub
234-
# uses: ncipollo/release-action@v1
235-
# with:
236-
# allowUpdates: true
237-
# artifacts: "ferron-${{ env.FERRON_VERSION }}-${{ matrix.target }}.zip"
238-
# tag: "${{ env.FERRON_VERSION }}"
239-
# commit: "main"
233+
- name: Release Ferron to GitHub
234+
uses: ncipollo/release-action@v1
235+
with:
236+
allowUpdates: true
237+
artifacts: "ferron-${{ env.FERRON_VERSION }}-${{ matrix.target }}.zip"
238+
tag: "${{ env.FERRON_VERSION }}"
239+
commit: "2.x"
240240

241241
- name: Build and release Debian package
242242
if: matrix.runner == 'warp-ubuntu-latest-x64-8x' && contains(matrix.target, 'linux-gnu')
@@ -253,6 +253,21 @@ jobs:
253253
# The "update-ferron-deb-repo" is a custom command that updates the Debian repository
254254
ssh ferron-servers "sudo update-ferron-deb-repo $DEB_PACKAGE_VERSION $DEB_ARCHITECTURE"
255255
256+
- name: Build and release RPM package
257+
if: matrix.runner == 'warp-ubuntu-latest-x64-8x' && contains(matrix.target, 'linux-gnu')
258+
shell: bash
259+
run: |
260+
packaging/rpm/build.sh ${{ matrix.target }} ${{ env.FERRON_VERSION }} target/${{ matrix.target }}/release
261+
262+
RPM_FILE_NAME_WO_RPM=$(ls dist/*.rpm | head -n 1 | sed -E 's|^dist/||' | sed -E 's/\.rpm$//')
263+
RPM_PACKAGE_VERSION=$(echo $RPM_FILE_NAME_WO_RPM | cut -d'-' -f2)
264+
RPM_ARCHITECTURE=$(echo $RPM_FILE_NAME_WO_RPM | rev | cut -d'.' -f1 | rev)
265+
ssh ferron-servers "mkdir -p rpm || true"
266+
scp dist/${RPM_FILE_NAME_WO_RPM}.rpm ferron-servers:rpm/${RPM_FILE_NAME_WO_RPM}.rpm
267+
268+
# The "update-ferron-rpm-repo" is a custom command that updates the RPM repository
269+
ssh ferron-servers "sudo update-ferron-rpm-repo $RPM_PACKAGE_VERSION $RPM_ARCHITECTURE"
270+
256271
docs:
257272
runs-on: warp-ubuntu-latest-x64-8x
258273

@@ -360,11 +375,11 @@ jobs:
360375
TAG_TYPE=${{ matrix.group }}
361376
FERRON_MAJOR_VERSION=$(echo "$FERRON_VERSION" | cut -d '.' -f 1)
362377
if [ "$TAG_TYPE" = "latest" ] || [ "$TAG_TYPE" = "" ]; then
363-
DOCKER_HUB_TAGS="ferronserver/ferron:$FERRON_VERSION,ferronserver/ferron:$FERRON_MAJOR_VERSION"
364-
DOCKER_GHCR_TAGS="ghcr.io/ferronweb/ferron:$FERRON_VERSION,ghcr.io/ferronweb/ferron:$FERRON_MAJOR_VERSION"
378+
DOCKER_HUB_TAGS="ferronserver/ferron:$FERRON_VERSION,ferronserver/ferron:$FERRON_MAJOR_VERSION,ferronserver/ferron:latest"
379+
DOCKER_GHCR_TAGS="ghcr.io/ferronweb/ferron:$FERRON_VERSION,ghcr.io/ferronweb/ferron:$FERRON_MAJOR_VERSION,ghcr.io/ferronweb/ferron:latest"
365380
else
366-
DOCKER_HUB_TAGS="ferronserver/ferron:$FERRON_VERSION-$TAG_TYPE,ferronserver/ferron:$FERRON_MAJOR_VERSION-$TAG_TYPE"
367-
DOCKER_GHCR_TAGS="ghcr.io/ferronweb/ferron:$FERRON_VERSION-$TAG_TYPE,ghcr.io/ferronweb/ferron:$FERRON_MAJOR_VERSION-$TAG_TYPE"
381+
DOCKER_HUB_TAGS="ferronserver/ferron:$FERRON_VERSION-$TAG_TYPE,ferronserver/ferron:$FERRON_MAJOR_VERSION-$TAG_TYPE,ferronserver/ferron:$TAG_TYPE"
382+
DOCKER_GHCR_TAGS="ghcr.io/ferronweb/ferron:$FERRON_VERSION-$TAG_TYPE,ghcr.io/ferronweb/ferron:$FERRON_MAJOR_VERSION-$TAG_TYPE,ghcr.io/ferronweb/ferron:$TAG_TYPE"
368383
fi
369384
echo "DOCKER_TAGS=$DOCKER_HUB_TAGS,$DOCKER_GHCR_TAGS" >> $GITHUB_ENV
370385

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ jobs:
153153
# The "move-ferron-archive" is a custom command that moves the ZIP archive to be served by the download server
154154
ssh ferron-servers "sudo move-ferron-archive ${{ env.FERRON_VERSION }} ${{ matrix.target }}"
155155
156-
- name: Release Ferron to GitHub
157-
uses: ncipollo/release-action@v1
158-
with:
159-
allowUpdates: true
160-
artifacts: "ferron-${{ env.FERRON_VERSION }}-${{ matrix.target }}.zip"
161-
tag: "${{ env.FERRON_VERSION }}"
162-
commit: "main"
156+
# - name: Release Ferron to GitHub
157+
# uses: ncipollo/release-action@v1
158+
# with:
159+
# allowUpdates: true
160+
# artifacts: "ferron-${{ env.FERRON_VERSION }}-${{ matrix.target }}.zip"
161+
# tag: "${{ env.FERRON_VERSION }}"
162+
# commit: "main"
163163

164164
docs:
165165
runs-on: ubuntu-latest
@@ -263,11 +263,11 @@ jobs:
263263
TAG_TYPE=${{ matrix.group }}
264264
FERRON_MAJOR_VERSION=$(echo "$FERRON_VERSION" | cut -d '.' -f 1)
265265
if [ "$TAG_TYPE" = "latest" ] || [ "$TAG_TYPE" = "" ]; then
266-
DOCKER_HUB_TAGS="ferronserver/ferron:$FERRON_VERSION,ferronserver/ferron:$FERRON_MAJOR_VERSION,ferronserver/ferron:latest"
267-
DOCKER_GHCR_TAGS="ghcr.io/ferronweb/ferron:$FERRON_VERSION,ghcr.io/ferronweb/ferron:$FERRON_MAJOR_VERSION,ghcr.io/ferronweb/ferron:latest"
266+
DOCKER_HUB_TAGS="ferronserver/ferron:$FERRON_VERSION,ferronserver/ferron:$FERRON_MAJOR_VERSION"
267+
DOCKER_GHCR_TAGS="ghcr.io/ferronweb/ferron:$FERRON_VERSION,ghcr.io/ferronweb/ferron:$FERRON_MAJOR_VERSION"
268268
else
269-
DOCKER_HUB_TAGS="ferronserver/ferron:$FERRON_VERSION-$TAG_TYPE,ferronserver/ferron:$FERRON_MAJOR_VERSION-$TAG_TYPE,ferronserver/ferron:$TAG_TYPE"
270-
DOCKER_GHCR_TAGS="ghcr.io/ferronweb/ferron:$FERRON_VERSION-$TAG_TYPE,ghcr.io/ferronweb/ferron:$FERRON_MAJOR_VERSION-$TAG_TYPE,ghcr.io/ferronweb/ferron:$TAG_TYPE"
269+
DOCKER_HUB_TAGS="ferronserver/ferron:$FERRON_VERSION-$TAG_TYPE,ferronserver/ferron:$FERRON_MAJOR_VERSION-$TAG_TYPE"
270+
DOCKER_GHCR_TAGS="ghcr.io/ferronweb/ferron:$FERRON_VERSION-$TAG_TYPE,ghcr.io/ferronweb/ferron:$FERRON_MAJOR_VERSION-$TAG_TYPE"
271271
fi
272272
echo "DOCKER_TAGS=$DOCKER_HUB_TAGS,$DOCKER_GHCR_TAGS" >> $GITHUB_ENV
273273

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ Thumbs.db
4242
# Temporary files used during packaging
4343
/packaging/deb/ferron_*
4444
/packaging/deb/md5sums.tmp
45+
/packaging/rpm/data/
46+
/packaging/rpm/rpm/
47+
/packaging/rpm/ferron.spec

0 commit comments

Comments
 (0)