Skip to content

feat: add to taxonomy #2531

feat: add to taxonomy

feat: add to taxonomy #2531

Workflow file for this run

# This workflow cleans up Preview deploys once a pull request is closed
name: PR - Preview Deploy Cleanup
on:
pull_request:
types: [closed]
jobs:
deploy_preview_cleanup:
name: Deploy Preview Cleanup
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
deployments: write
steps:
- name: Checkout chart
uses: actions/checkout@v3
with:
repository: posthog/charts-clickhouse
path: charts-clickhouse
- name: Checkout
uses: actions/checkout@v3
with:
path: posthog
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::169684386827:role/github-terraform-infra-role
role-duration-seconds: 3600
- name: connect to tailscale
uses: tailscale/github-action@8b804aa882ac3429b804a2a22f9803a2101a0db9
env:
TS_EXPERIMENT_OAUTH_AUTHKEY: true
with:
version: 1.42.0
authkey: ${{ secrets.TAILSCALE_OAUTH_SECRET }}
args: --advertise-tags tag:github-runner
- name: Delete preview deployment
id: cleanup
run: |
aws eks update-kubeconfig --name "posthog-dev"
kubectl config set-cluster arn:aws:eks:us-east-1:169684386827:cluster/posthog-dev --server=https://eks-posthog-dev --tls-server-name 8BD6E1D2FEBDE47C8177E29CAC9E6C61.gr7.us-east-1.eks.amazonaws.com
export PR_NUM=${{ github.event.number }}
export BRANCH_NAME=${{ github.head_ref }}
export NAMESPACE=pr-$PR_NUM-${BRANCH_NAME//\//-}
kubectl -n $NAMESPACE delete clickhouseinstallations.clickhouse.altinity.com/posthog || true
kubectl delete namespace $NAMESPACE || true
- name: delete deployment
uses: bobheadxi/[email protected]
id: deployment
with:
step: deactivate-env
env: pr-${{ github.head_ref }}
ref: ${{ github.head_ref }}