From e1bcf1fb86ef1e41b64f65d473b78969fa84d524 Mon Sep 17 00:00:00 2001 From: Andras Bacsai <5845193+andrasbacsai@users.noreply.github.com> Date: Wed, 16 Sep 2026 11:26:35 +0200 Subject: [PATCH] ci: notify Discord after image builds --- .github/workflows/coolify-next-build.yml | 5 +++++ .github/workflows/coolify-sha-build.yml | 5 +++++ tests/Unit/ProductionImageWorkflowTest.php | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/.github/workflows/coolify-next-build.yml b/.github/workflows/coolify-next-build.yml index 9985edb411..965a98b6bc 100644 --- a/.github/workflows/coolify-next-build.yml +++ b/.github/workflows/coolify-next-build.yml @@ -150,3 +150,8 @@ jobs: --tag "${IMAGE}:sha-${SHA}" \ --tag "${IMAGE}:${VERSION}" \ --tag "${IMAGE}:next" + + - uses: sarisia/actions-status-discord@v1 + if: always() + with: + webhook: ${{ secrets.DISCORD_WEBHOOK_DEV_RELEASE_CHANNEL }} diff --git a/.github/workflows/coolify-sha-build.yml b/.github/workflows/coolify-sha-build.yml index 8a1967f743..595fbbd93d 100644 --- a/.github/workflows/coolify-sha-build.yml +++ b/.github/workflows/coolify-sha-build.yml @@ -107,3 +107,8 @@ jobs: "${IMAGE}:sha-${SHA}-amd64" \ "${IMAGE}:sha-${SHA}-aarch64" \ --tag "${IMAGE}:sha-${SHA}" + + - uses: sarisia/actions-status-discord@v1 + if: always() + with: + webhook: ${{ secrets.DISCORD_WEBHOOK_DEV_RELEASE_CHANNEL }} diff --git a/tests/Unit/ProductionImageWorkflowTest.php b/tests/Unit/ProductionImageWorkflowTest.php index 588b405310..c224ff0744 100644 --- a/tests/Unit/ProductionImageWorkflowTest.php +++ b/tests/Unit/ProductionImageWorkflowTest.php @@ -18,6 +18,8 @@ it('publishes v4 branch builds under the commit sha with a traceable internal ve ->toContain('php bootstrap/getVersion.php') ->toContain('version=${BASE_VERSION}-dev.${GITHUB_SHA::9}') ->toContain('COOLIFY_VERSION=${{ steps.version.outputs.version }}') + ->toContain('sarisia/actions-status-discord@v1') + ->toContain('webhook: ${{ secrets.DISCORD_WEBHOOK_DEV_RELEASE_CHANNEL }}') ->not->toContain('IMAGE_NAME }}:latest') ->and($dockerfile) ->toContain('ARG COOLIFY_VERSION') @@ -124,6 +126,8 @@ it('publishes traceable rolling builds from next without creating an exact rc ta ->toContain('--tag "${IMAGE}:sha-${SHA}"') ->toContain('--tag "${IMAGE}:${VERSION}"') ->toContain('--tag "${IMAGE}:next"') + ->toContain('sarisia/actions-status-discord@v1') + ->toContain('webhook: ${{ secrets.DISCORD_WEBHOOK_DEV_RELEASE_CHANNEL }}') ->not->toContain('--tag "${IMAGE}:${RC_VERSION}"') ->not->toContain('--tag "${IMAGE}:latest"'); });