ci: simplify dev pipeline to build-test only (remove deploy/notify stubs)
All checks were successful
Dev Build / build-test (push) Successful in 3m46s
All checks were successful
Dev Build / build-test (push) Successful in 3m46s
This commit is contained in:
@@ -42,39 +42,3 @@ jobs:
|
|||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
run: npm run build
|
run: npm run build
|
||||||
working-directory: ./frontend
|
working-directory: ./frontend
|
||||||
|
|
||||||
deploy-dev:
|
|
||||||
needs: build-test
|
|
||||||
if: gitea.event_name == 'push'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Deploy dev
|
|
||||||
run: |
|
|
||||||
echo "${{ secrets.DEV_DEPLOY_SSH_KEY }}" > /tmp/dev_key
|
|
||||||
chmod 600 /tmp/dev_key
|
|
||||||
ssh -i /tmp/dev_key -o StrictHostKeyChecking=no \
|
|
||||||
${{ secrets.DEV_DEPLOY_USER }}@${{ secrets.DEV_DEPLOY_HOST }} \
|
|
||||||
"${{ secrets.DEV_DEPLOY_PATH }}/deploy.sh"
|
|
||||||
|
|
||||||
notify-success:
|
|
||||||
needs: [build-test, deploy-dev]
|
|
||||||
if: success() && gitea.event_name == 'push'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Notify Slack success
|
|
||||||
run: |
|
|
||||||
curl -X POST -H 'Content-type: application/json' \
|
|
||||||
--data "{\"text\":\"✅ Extrudex dev deployed successfully from dev branch.\"}" \
|
|
||||||
"${{ secrets.SLACK_WEBHOOK_URL }}"
|
|
||||||
|
|
||||||
notify-failure:
|
|
||||||
needs: [build-test, deploy-dev]
|
|
||||||
if: failure()
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Notify Slack failure
|
|
||||||
run: |
|
|
||||||
curl -X POST -H 'Content-type: application/json' \
|
|
||||||
--data "{\"text\":\"🚨 Extrudex dev pipeline failed. Check Gitea Actions for details.\"}" \
|
|
||||||
"${{ secrets.SLACK_WEBHOOK_URL }}"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user