Skip to content

Commit

Permalink
Merge pull request #99 from CodeForPhilly/workspace-upgrade
Browse files Browse the repository at this point in the history
Workspace upgrade
  • Loading branch information
themightychris authored Jun 14, 2023
2 parents e5f27d5 + 10f4704 commit 2250f61
Show file tree
Hide file tree
Showing 21 changed files with 121 additions and 607 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/container-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Container: Publish Image'

on:
push:
tags: [ 'v*' ]

permissions:
contents: write
packages: write

jobs:
container-publish:

runs-on: ubuntu-latest
steps:

- uses: EmergencePlatform/php-runtime@github-actions/build-site-container/v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
234 changes: 0 additions & 234 deletions .github/workflows/k8s-deploy.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/k8s-destroy.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/preview-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Preview: Deploy'

on:
pull_request:
branches: [ develop ]
types: [ opened, reopened, synchronize ]
push:
branches: [ develop ]

concurrency:
group: preview-${{ github.head_ref }}
cancel-in-progress: true

permissions:
contents: write
packages: write
deployments: write

jobs:
preview-deploy:
runs-on: ubuntu-latest
steps:

- uses: EmergencePlatform/php-runtime@github-actions/deploy-site-preview/v1
id: deploy-site-preview
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
kube-config: ${{ secrets.KUBECONFIG_BASE64 }}
kube-namespace: code-for-philly
kube-hostname: codeforphilly.sandbox.k8s.phl.io
25 changes: 25 additions & 0 deletions .github/workflows/preview-destroy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Preview: Destroy'

on:
pull_request:
branches: [ develop ]
types: [ closed ]

concurrency:
group: preview-${{ github.head_ref }}
cancel-in-progress: true

permissions:
deployments: write

jobs:
preview-destroy:
runs-on: ubuntu-latest
steps:

- uses: EmergencePlatform/php-runtime@github-actions/destroy-site-preview/v1
id: destroy-site-preview
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
kube-config: ${{ secrets.KUBECONFIG_BASE64 }}
kube-namespace: code-for-philly
Loading

0 comments on commit 2250f61

Please sign in to comment.