From 97bd46d665163ea3a62d6949300c6b7f779bc0ef Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Tue, 28 Jul 2026 18:40:40 +0200 Subject: [PATCH 1/4] meta: Pull latest changes --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c1116c..748ee1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ env: PKG_VERSION: "2026.07.27" # TODO: actions/checkout only supports GITHUB repos... GATUS_REPO: "selfhoster1312/gatus" - GATUS_REF: "5c2d40f45e459076c340e3fd9f307ebd19385ad1" + GATUS_REF: "d65a3321f1291aa419870a04896aa65fc4c78cf4" # Preview mode: Publishes the build output as a CI artifact instead of creating # a release, allowing for manual inspection of the output. This mode is # activated if the CI run was triggered by events other than pushed tags, or From c5951866d4639ac649e5243d3cf781480f97d436 Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Tue, 28 Jul 2026 18:40:53 +0200 Subject: [PATCH 2/4] release: 2026.07.28 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 748ee1c..761aa04 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,7 @@ name: Release env: - PKG_VERSION: "2026.07.27" + PKG_VERSION: "2026.07.28" # TODO: actions/checkout only supports GITHUB repos... GATUS_REPO: "selfhoster1312/gatus" GATUS_REF: "d65a3321f1291aa419870a04896aa65fc4c78cf4" From 7e82dedfaf4a7d2a268cdf255f0297d4e5417b9c Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Tue, 18 Aug 2026 18:23:47 +0200 Subject: [PATCH 4/4] wip: move to forgejo actions --- .github/workflows/release.yml | 53 ++++++++++++++++++++--------------- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 761aa04..a312906 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release env: PKG_VERSION: "2026.07.28" # TODO: actions/checkout only supports GITHUB repos... - GATUS_REPO: "selfhoster1312/gatus" + GATUS_REPO: "https://github.com/selfhoster1312/gatus" GATUS_REF: "d65a3321f1291aa419870a04896aa65fc4c78cf4" # Preview mode: Publishes the build output as a CI artifact instead of creating # a release, allowing for manual inspection of the output. This mode is @@ -24,7 +24,6 @@ on: - '.github/workflows/release.yml' concurrency: - group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: false permissions: @@ -33,17 +32,18 @@ permissions: jobs: build: name: Build gatus with pre-packaged web assets - runs-on: ubuntu-22.04 + runs-on: docker steps: - - name: Checkout sources - uses: actions/checkout@v7 - with: - repository: "${{ env.GATUS_REPO }}" - ref: "${{ env.GATUS_REF }}" + - name: Copy source repo + run: | + git clone "${{ env.GATUS_REPO }}" . + git checkout "${{ env.GATUS_REF }}" - name: Checkout sources for packaging - uses: actions/checkout@v7 - with: - path: "__CI_PREBUILD__" + run: | + git clone "${{ forgejo.server_url }}/${{ forgejo.repository }}" __CI_PREBUILD__ + cd __CI_PREBUILD__ + git checkout "${{ forgejo.sha }}" + cd .. - uses: actions/setup-go@v6 with: go-version: 1.26.3 @@ -56,7 +56,7 @@ jobs: go build -o dist/gatus-amd64 cp dist/gatus-amd64 __CI_PREBUILD__/debian/gatus/usr/local/bin/gatus - name: Build deb for amd64 - uses: jiro4989/build-deb-action@86e86ceb88b13157fa569663d43c89346505fc3e + uses: https://github.com/jiro4989/build-deb-action@86e86ceb88b13157fa569663d43c89346505fc3e with: package: gatus package_root: __CI_PREBUILD__/debian/gatus @@ -70,7 +70,7 @@ jobs: GOARCH="arm64" go build -o dist/gatus-arm64 cp dist/gatus-arm64 __CI_PREBUILD__/debian/gatus/usr/local/bin/gatus - name: Build deb for arm64 - uses: jiro4989/build-deb-action@86e86ceb88b13157fa569663d43c89346505fc3e + uses: https://github.com/jiro4989/build-deb-action@86e86ceb88b13157fa569663d43c89346505fc3e with: package: gatus package_root: __CI_PREBUILD__/debian/gatus @@ -78,9 +78,16 @@ jobs: version: ${{ env.PKG_VERSION }} arch: arm64 id: build-deb-arm64 - + + - name: Compute deb filename + run: | + cat <>$GITHUB_ENV + ARM64_DEB_FILENAME=$(basename ${{ steps.build-deb-arm64.outputs.file_name }}) + AMD64_DEB_FILENAME=$(basename ${{ steps.build-deb-amd64.outputs.file_name }}) + EOF + - name: Upload binaries to release - uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # 2.11.5 + uses: actions/forgejo-release@v2.13.4 if: env.preview == 'false' with: repo_token: ${{ secrets.GITHUB_TOKEN }} @@ -89,7 +96,7 @@ jobs: tag: ${{ github.ref_name }} overwrite: true - name: Upload amd64 deb to release - uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # 2.11.5 + uses: actions/forgejo-release@v2.13.4 if: env.preview == 'false' with: repo_token: ${{ secrets.GITHUB_TOKEN }} @@ -97,38 +104,40 @@ jobs: tag: ${{ github.ref_name }} overwrite: true - name: Upload arm64 deb to release - uses: svenstaro/upload-release-action@29e53e917877a24fad85510ded594ab3c9ca12de # 2.11.5 + uses: actions/forgejo-release@v2.13.4 if: env.preview == 'false' with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ${{ steps.build-deb-arm64.outputs.file_name }} + path: ${{ steps.build-deb-arm64.outputs.file_name }} tag: ${{ github.ref_name }} overwrite: true - name: Upload gatus-amd64 as artifact - uses: actions/upload-artifact@v7 + uses: https://code.forgejo.org/forgejo/upload-artifact@v3 if: env.preview == 'true' with: name: gatus-amd64 path: dist/gatus-amd64 archive: false - name: Upload gatus-amd64 deb as artifact - uses: actions/upload-artifact@v7 + uses: https://code.forgejo.org/forgejo/upload-artifact@v3 if: env.preview == 'true' with: + name: ${{ env.AMD64_DEB_FILENAME }} path: ${{ steps.build-deb-amd64.outputs.file_name }} archive: false - name: Upload gatus-arm64 as artifact - uses: actions/upload-artifact@v7 + uses: https://code.forgejo.org/forgejo/upload-artifact@v3 if: env.preview == 'true' with: name: gatus-arm64 path: dist/gatus-arm64 archive: false - name: Upload gatus-arm64 deb as artifact - uses: actions/upload-artifact@v7 + uses: https://code.forgejo.org/forgejo/upload-artifact@v3 if: env.preview == 'true' with: + name: ${{ env.ARM64_DEB_FILENAME }} path: ${{ steps.build-deb-arm64.outputs.file_name }} archive: false