chore(paths): add regression tests for pathReplacements default behavior #2275
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and deploy rust container images | ||
|
Check failure on line 1 in .github/workflows/rust-docker-build.yml
|
||
| # Production build + deploy for Rust services on master. | ||
| # | ||
| # Image list: .github/rust-images.yml | ||
| # Build steps: .github/workflows/_rust-build-images.yml | ||
| # Deploy matrix below must be updated when adding new services. | ||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| paths: | ||
| - 'rust/**' | ||
| - '.github/workflows/rust-docker-build.yml' | ||
| - '.github/workflows/_rust-build-images.yml' | ||
| - '.github/rust-images.yml' | ||
| branches: | ||
| - 'master' | ||
| jobs: | ||
| build-images: | ||
| timeout-minutes: 20 | ||
| uses: ./.github/workflows/_rust-build-images.yml | ||
| with: | ||
| tag-rules: | | ||
| type=ref,event=pr | ||
| type=ref,event=branch | ||
| type=semver,pattern={{version}} | ||
| type=semver,pattern={{major}}.{{minor}} | ||
| type=sha | ||
| timeout-minutes: 15 | ||
| secrets: inherit | ||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
| packages: write | ||
| deploy: | ||
| name: deploy ${{ matrix.release }} | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 5 | ||
| needs: build-images | ||
| if: github.ref == 'refs/heads/master' | ||
| strategy: | ||
| matrix: | ||
| include: | ||
| - release: capture | ||
| digest_key: capture | ||
| values_key: image | ||
| - release: capture-replay | ||
| digest_key: capture | ||
| values_key: image | ||
| - release: cyclotron | ||
| digest_key: cyclotron-janitor | ||
| values_key: janitor_image | ||
| - release: property-defs-rs | ||
| digest_key: property-defs-rs | ||
| values_key: image | ||
| - release: feature-flags | ||
| digest_key: feature-flags | ||
| values_key: image | ||
| - release: batch-import-worker | ||
| digest_key: batch-import-worker | ||
| values_key: image | ||
| - release: cymbal | ||
| digest_key: cymbal | ||
| values_key: image | ||
| - release: embedding-worker | ||
| digest_key: embedding-worker | ||
| values_key: image | ||
| - release: capture-logs | ||
| digest_key: capture-logs | ||
| values_key: image | ||
| - release: kafka-deduplicator | ||
| digest_key: kafka-deduplicator | ||
| values_key: image | ||
| - release: sqlx-migrate | ||
| digest_key: sqlx-migrate | ||
| values_key: image | ||
| - release: personhog-leader | ||
| digest_key: personhog-leader | ||
| values_key: image | ||
| - release: personhog-replica | ||
| digest_key: personhog-replica | ||
| values_key: image | ||
| - release: personhog-router | ||
| digest_key: personhog-router | ||
| values_key: image | ||
| - release: kafka-assigner | ||
| digest_key: kafka-assigner | ||
| values_key: image | ||
| steps: | ||
| - name: get deployer token | ||
| id: deployer | ||
| uses: getsentry/action-github-app-token@d4b5da6c5e37703f8c3b3e43abb5705b46e159cc # v3.0.0 | ||
| with: | ||
| app_id: ${{ secrets.GH_APP_CHARTS_DEPLOYER_APP_ID }} | ||
| private_key: ${{ secrets.GH_APP_CHARTS_DEPLOYER_PRIVATE_KEY }} | ||
| - name: trigger ${{ matrix.release }} deployment | ||
| uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1 | ||
| with: | ||
| token: ${{ steps.deployer.outputs.token }} | ||
| repository: PostHog/charts | ||
| event-type: commit_state_update | ||
| client-payload: | | ||
| { | ||
| "values": {"${{ matrix.values_key }}": {"sha": "${{ fromJson(needs.build-images.outputs.digests)[matrix.digest_key] }}"}}, | ||
| "release": "${{ matrix.release }}", | ||
| "commit": ${{ toJson(github.event.head_commit) }}, | ||
| "repository": ${{ toJson(github.repository) }}, | ||
| "labels": [], | ||
| "timestamp": "${{ github.event.head_commit.timestamp }}" | ||
| } | ||