Skip to content

Commit 1a3d895

Browse files
committed
ci: remove auto-deploy
Signed-off-by: binaryYuki <60097976+binaryYuki@users.noreply.github.com>
1 parent f8070de commit 1a3d895

File tree

1 file changed

+0
-42
lines changed

1 file changed

+0
-42
lines changed

.github/workflows/autoci.yml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -147,45 +147,3 @@ jobs:
147147
run: |
148148
rm -rf /tmp/.buildx-cache
149149
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
150-
deploy:
151-
runs-on: ubuntu-24.04
152-
needs: docker
153-
steps:
154-
- name: Deploy Application
155-
env:
156-
DOKPLOY_URL: ${{ secrets.DOKPLOY_URL }}
157-
DOKPLOY_AUTH_TOKEN: ${{ secrets.DOKPLOY_AUTH_TOKEN }}
158-
DOKPLOY_APPLICATION_ID: ${{ secrets.DOKPLOY_APPLICATION_ID }}
159-
run: |
160-
# Debug output for environment variables (avoid leaking sensitive information)
161-
echo "DOKPLOY_URL: $DOKPLOY_URL"
162-
echo "DOKPLOY_APPLICATION_ID: $DOKPLOY_APPLICATION_ID"
163-
164-
# Send request and capture response and status code
165-
response=$(curl -X 'POST' \
166-
"$DOKPLOY_URL/api/application.redeploy" \
167-
-H 'accept: application/json' \
168-
-H 'Content-Type: application/json' \
169-
-H "Authorization: Bearer $DOKPLOY_AUTH_TOKEN" \
170-
-H "User-Agent: TZPro/1.0 (like github-actions)" \
171-
-H "Referer: panel.tzpro.xyz" \
172-
-H "Origin: panel.tzpro.xyz" \
173-
-d "{\"applicationId\": \"$DOKPLOY_APPLICATION_ID\"}" \
174-
-w "%{http_code}" \
175-
-o response_body.txt \
176-
-s)
177-
178-
# Output response body and status code for debugging
179-
echo "HTTP Response Code: $response"
180-
echo "Response Body:"
181-
cat response_body.txt
182-
183-
# Check response status code
184-
if [ "$response" -ne 200 ]; then
185-
echo "Deployment failed with status code: $response"
186-
echo "Response body:"
187-
cat response_body.txt
188-
exit 1
189-
fi
190-
191-
echo "Deployment succeeded!"

0 commit comments

Comments
 (0)