From f83edd3997509695dcc877201d16fa205802974a Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Mon, 21 Oct 2024 04:43:39 +0000 Subject: [PATCH] Added deployment scripts and workflows --- .woodpecker/deploy.yaml | 8 ++++++++ scripts/deploy.sh | 4 ++++ 2 files changed, 12 insertions(+) create mode 100644 .woodpecker/deploy.yaml create mode 100644 scripts/deploy.sh diff --git a/.woodpecker/deploy.yaml b/.woodpecker/deploy.yaml new file mode 100644 index 0000000..9a18970 --- /dev/null +++ b/.woodpecker/deploy.yaml @@ -0,0 +1,8 @@ +steps: + - name: deploy + image: alpine + environment: + TOKEN: + from_secret: RSE_panel + commands: + - ./scripts/deploy.sh \ No newline at end of file diff --git a/scripts/deploy.sh b/scripts/deploy.sh new file mode 100644 index 0000000..22daefe --- /dev/null +++ b/scripts/deploy.sh @@ -0,0 +1,4 @@ +#!/bin/bin +curl https://panel.fun.reslate.systems/api/v1/deploy?uuid=x0kg0ows88co44ww04c00wsc&force=false + -H "Accept: application/json" + -H "Authorization: Bearer ${TOKEN}" \ No newline at end of file