-
Notifications
You must be signed in to change notification settings - Fork 5
33 lines (31 loc) · 1010 Bytes
/
clean.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Clean
on:
pull_request:
types:
- closed
jobs:
check-deployment-stop:
name: "Check / Deployment Stop"
runs-on: ubuntu-latest
container:
image: ghcr.io/matrixai/github-runner
concurrency:
group: check-deployment-stop
cancel-in-progress: false
environment: feature
if: startsWith(github.head_ref, 'feature')
steps:
- uses: actions/checkout@v4
- name: Run deployment
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
ZONE_ID: ${{ secrets.ZONE_ID }}
AUTH_KEY: ${{ secrets.AUTH_KEY }}
AUTH_EMAIL: ${{ secrets.AUTH_EMAIL }}
run: |
echo 'Perform service deployment for feature'
nix develop .#ci --command bash -c $'
wrangler delete --name "polykey-docs-dev-$GITHUB_HEAD_REF" --force
DOMAIN="$GITHUB_HEAD_REF.dev.polykey.com/docs" ./scripts/ssl.sh
'