Skip to content

Commit 01adbb6

Browse files
Merge pull request #269 from CodeForPhilly/new-preview-destroy-action
feat(ci): apply new preview destroy action
2 parents 54d8a38 + 2b983f2 commit 01adbb6

File tree

2 files changed

+25
-38
lines changed

2 files changed

+25
-38
lines changed

.github/workflows/k8s-destroy.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/preview-destroy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Preview: Destroy'
2+
3+
on:
4+
pull_request:
5+
branches: [ develop ]
6+
types: [ closed ]
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
deployments: write
14+
15+
jobs:
16+
preview-deploy:
17+
runs-on: ubuntu-latest
18+
steps:
19+
20+
- uses: EmergencePlatform/php-runtime@github-actions/destroy-site-preview/develop
21+
id: destroy-site-preview
22+
with:
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
kube-config: ${{ secrets.KUBECONFIG_BASE64 }}
25+
kube-namespace: laddr

0 commit comments

Comments
 (0)