From 4f8ab4d16a4b8dc4d5bbb6acb9eb6c5b7b6e7bb2 Mon Sep 17 00:00:00 2001 From: ReaJason Date: Sun, 2 Feb 2025 17:40:44 +0800 Subject: [PATCH] ci: auto deploy [skip ci] --- .github/workflows/build.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2f334cd3..5c93e04a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -87,4 +87,19 @@ jobs: push: true tags: | reajason/memshell-party:latest - ghcr.io/reajason/memshell-party:latest \ No newline at end of file + ghcr.io/reajason/memshell-party:latest + + deploy-northflank: + name: Deploy to Northflank + needs: [ docker-push ] + runs-on: ubuntu-latest + env: + NORTHFLANK_API_KEY: ${{ secrets.NORTHFLANK_API_KEY }} + steps: + - name: Update Deployment + run: | + curl --header "Content-Type: application/json" \ + --header "Authorization: Bearer $NORTHFLANK_API_KEY" \ + --request POST \ + --data '{"external":{"imagePath":"docker.io/reajason/memshell-party:latest","credentials":"docker-hub"},"docker":{"configType":"default"}}' \ + https://api.northflank.com/v1/projects/memshellparty/services/memshellparty/deployment