Skip to content

Commit 2250f61

Browse files
Merge pull request #99 from CodeForPhilly/workspace-upgrade
Workspace upgrade
2 parents e5f27d5 + 10f4704 commit 2250f61

21 files changed

+121
-607
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'Container: Publish Image'
2+
3+
on:
4+
push:
5+
tags: [ 'v*' ]
6+
7+
permissions:
8+
contents: write
9+
packages: write
10+
11+
jobs:
12+
container-publish:
13+
14+
runs-on: ubuntu-latest
15+
steps:
16+
17+
- uses: EmergencePlatform/php-runtime@github-actions/build-site-container/v1
18+
with:
19+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/k8s-deploy.yml

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

.github/workflows/k8s-destroy.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 'Preview: Deploy'
2+
3+
on:
4+
pull_request:
5+
branches: [ develop ]
6+
types: [ opened, reopened, synchronize ]
7+
push:
8+
branches: [ develop ]
9+
10+
concurrency:
11+
group: preview-${{ github.head_ref }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
contents: write
16+
packages: write
17+
deployments: write
18+
19+
jobs:
20+
preview-deploy:
21+
runs-on: ubuntu-latest
22+
steps:
23+
24+
- uses: EmergencePlatform/php-runtime@github-actions/deploy-site-preview/v1
25+
id: deploy-site-preview
26+
with:
27+
github-token: ${{ secrets.GITHUB_TOKEN }}
28+
kube-config: ${{ secrets.KUBECONFIG_BASE64 }}
29+
kube-namespace: code-for-philly
30+
kube-hostname: codeforphilly.sandbox.k8s.phl.io
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: preview-${{ github.head_ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
deployments: write
14+
15+
jobs:
16+
preview-destroy:
17+
runs-on: ubuntu-latest
18+
steps:
19+
20+
- uses: EmergencePlatform/php-runtime@github-actions/destroy-site-preview/v1
21+
id: destroy-site-preview
22+
with:
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
kube-config: ${{ secrets.KUBECONFIG_BASE64 }}
25+
kube-namespace: code-for-philly

0 commit comments

Comments
 (0)