Update .gitea/workflows/cleanup-pr.yml
This commit is contained in:
1 parent
b108bb26b8
commit
460700bf8c
2 files changed
+14
-16
No files matched your search
@@ -0,0 +1,14 @@
|
|||||||
|
name: Cleanup Staging on Merge
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [closed]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
cleanup:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Stop Staging Container
|
||||||
|
run: |
|
||||||
|
docker rm -f fbird-staging || true
|
||||||
|
echo "Staging container stopped."
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
name: Stop Staging Environment
|
|
||||||
|
|
||||||
# Allows you to trigger this manually from the Gitea UI
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
stop-staging:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Stop and Remove Staging Container
|
|
||||||
run: |
|
|
||||||
echo "Tearing down staging container..."
|
|
||||||
docker rm -f fbird-staging || true
|
|
||||||
echo "Staging environment stopped successfully!"
|
|
||||||
Reference in new issue
Block a user