From bb29a70f4c8756524b4ea3c6f418877c1410e747 Mon Sep 17 00:00:00 2001 From: "Luke Tainton (ltainton)" Date: Fri, 20 Oct 2023 19:50:19 +0100 Subject: [PATCH 1/3] fix(ci): fix issues with publishing Docker image --- .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 baad408..24ff0c1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,4 +37,4 @@ jobs: - name: Push image to GitHub Package Registry run: | docker push ghcr.io/luketainton/roboluke-tasks:latest - docker push ghcr.io/luketainton/roboluke-tasks:${{ needs.release.outputs.new_tag }} + docker push ghcr.io/luketainton/roboluke-tasks:${{ needs.release.outputs.new_tag }} \ No newline at end of file From 4dedea1949f8e5debd2466d65c3252008259e7ed Mon Sep 17 00:00:00 2001 From: "Luke Tainton (ltainton)" Date: Fri, 20 Oct 2023 19:52:23 +0100 Subject: [PATCH 2/3] fix(ci): correct reference to previous CI job --- .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 24ff0c1..baad408 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,4 +37,4 @@ jobs: - name: Push image to GitHub Package Registry run: | docker push ghcr.io/luketainton/roboluke-tasks:latest - docker push ghcr.io/luketainton/roboluke-tasks:${{ needs.release.outputs.new_tag }} \ No newline at end of file + docker push ghcr.io/luketainton/roboluke-tasks:${{ needs.release.outputs.new_tag }} From ebeaa551ff98c9cf974051904306cb8a70f8be0f Mon Sep 17 00:00:00 2001 From: "Luke Tainton (ltainton)" Date: Fri, 20 Oct 2023 21:16:52 +0100 Subject: [PATCH 3/3] chore(ci): auto-update Portainer stack on release --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index baad408..26e94ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,3 +38,12 @@ jobs: run: | docker push ghcr.io/luketainton/roboluke-tasks:latest docker push ghcr.io/luketainton/roboluke-tasks:${{ needs.release.outputs.new_tag }} + + deploy: + name: Update Portainer Deployment + runs-on: ubuntu-latest + steps: + - uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.PORTAINER_WEBHOOK_URL }} + method: POST