diff --git a/.github/workflows/container-images-ci.yml b/.github/workflows/container-images-ci.yml index e37d2e730efb3..969a9e3286e1f 100644 --- a/.github/workflows/container-images-ci.yml +++ b/.github/workflows/container-images-ci.yml @@ -14,7 +14,7 @@ jobs: permissions: id-token: write # allow issuing OIDC tokens for this workflow run contents: read # allow at least reading the repo contents, add other permissions if necessary - + steps: # If this run wasn't initiated by PostHog Bot (meaning: snapshot update), # cancel previous runs of snapshot update-inducing workflows @@ -39,12 +39,12 @@ jobs: with: actions-id-token-request-url: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL }} - deploy_preview: - name: Deploy preview environment - uses: ./.github/workflows/pr-deploy.yml - needs: [posthog_build] - secrets: inherit - if: ${{ contains(github.event.pull_request.labels.*.name, 'deploy') }} + # deploy_preview: + # name: Deploy preview environment + # uses: ./.github/workflows/pr-deploy.yml + # needs: [posthog_build] + # secrets: inherit + # if: ${{ contains(github.event.pull_request.labels.*.name, 'deploy') }} lint: name: Lint changed Dockerfiles diff --git a/.github/workflows/pr-cleanup.yml b/.github/workflows/pr-cleanup.yml index e7bca8d22bc6a..ab00ec9c22c1a 100644 --- a/.github/workflows/pr-cleanup.yml +++ b/.github/workflows/pr-cleanup.yml @@ -4,7 +4,7 @@ name: PR - Preview Deploy Cleanup on: pull_request: - types: [closed] + # types: [closed] jobs: deploy_preview_cleanup: @@ -20,8 +20,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - with: - path: posthog - uses: aws-actions/configure-aws-credentials@v1 with: @@ -58,10 +56,10 @@ jobs: export REGISTRY_URL=${{ steps.aws-ecr.outputs.registry }}/pr-test export DOCKER_TAG=${{ github.event.pull_request.head.sha }} - envsubst < posthog/.github/pr-deploy/hobby.yaml.tmpl > posthog/.github/pr-deploy/hobby.yaml + envsubst < .github/pr-deploy/hobby.yaml.tmpl > .github/pr-deploy/hobby.yaml #Clean and deploy - kubectl -n $NAMESPACE delete -f posthog/.github/pr-deploy/hobby.yaml || true + kubectl -n $NAMESPACE delete -f .github/pr-deploy/hobby.yaml || true - name: delete deployment uses: bobheadxi/deployments@v1.4.0 diff --git a/.github/workflows/pr-deploy.yml b/.github/workflows/pr-deploy.yml index 4bfd7ed577fb5..867dafd60e263 100644 --- a/.github/workflows/pr-deploy.yml +++ b/.github/workflows/pr-deploy.yml @@ -55,31 +55,6 @@ jobs: id: aws-ecr uses: aws-actions/amazon-ecr-login@v1 - # - name: Build and cache Docker image in Depot - # uses: ./.github/actions/build-n-cache-image - # with: - # actions-id-token-request-url: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL }} - - # - name: Build pr test image - # id: build-unit - # uses: depot/build-push-action@v1 - # with: - # buildx-fallback: false # buildx is so slow it's better to just fail - # push: false - # tags: posthog/posthog:pr-test-${{ github.event.pull_request.head.sha }} - # platforms: linux/amd64,linux/arm64 - # build-args: COMMIT_HASH=${{ github.event.pull_request.head.sha }} - - # - name: Build and push - # uses: docker/build-push-action@v5 - # with: - # push: true - # tags: ${{ steps.aws-ecr.outputs.registry }}/pr-test:${{ github.event.pull_request.head.sha }} - # build-args: COMMIT_HASH=${{ github.event.pull_request.head.sha }} - # cache-from: type=gha - # cache-to: type=gha,mode=max - # platforms: linux/amd64,linux/arm64 - - name: Build and push PR test image id: build-unit uses: depot/build-push-action@v1