Skip to content

Commit

Permalink
feat: use new state deployment for posthog cloud (#23014)
Browse files Browse the repository at this point in the history
use new state deployment for posthog cloud

once PostHog/charts#1343 is merged everything
will be in place to support this (uploading assets)

this should make it significantly easier to do fast rollbacks
  • Loading branch information
frankh authored Jun 17, 2024
1 parent 14f114a commit f1be4b2
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/container-images-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,22 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Trigger PostHog Cloud deployment from Charts
uses: mvasigh/dispatch-action@main
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.deployer.outputs.token }}
repo: charts
owner: PostHog
event_type: posthog_deploy
message: |
repository: PostHog/charts
event-type: commit_state_update
client-payload: |
{
"image_tag": "${{ steps.build.outputs.digest }}",
"context": ${{ toJson(github) }},
"github_labels": ${{ toJson(steps.labels.outputs.labels) }}
"values": {
"image": {
"sha": "${{ steps.build.outputs.digest }}"
}
},
"release": "posthog",
"commit": ${{ toJson(github.event.head_commit) }},
"repository": ${{ toJson(github.repository) }},
"labels": ${{ steps.labels.outputs.labels }}
}
- name: Check for changes in plugins directory
Expand Down

0 comments on commit f1be4b2

Please sign in to comment.