mirror of
https://github.com/formbricks/formbricks.git
synced 2026-02-05 02:58:36 -06:00
63 lines
1.6 KiB
YAML
63 lines
1.6 KiB
YAML
name: Build, release & deploy Formbricks images
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
ENVIRONMENT: ${{ github.event.release.prerelease && 'staging' || 'production' }}
|
|
|
|
jobs:
|
|
docker-build:
|
|
name: Build & release docker image
|
|
uses: ./.github/workflows/release-docker-github.yml
|
|
secrets: inherit
|
|
with:
|
|
IS_PRERELEASE: ${{ github.event.release.prerelease }}
|
|
|
|
helm-chart-release:
|
|
name: Release Helm Chart
|
|
uses: ./.github/workflows/release-helm-chart.yml
|
|
secrets: inherit
|
|
needs:
|
|
- docker-build
|
|
with:
|
|
VERSION: ${{ needs.docker-build.outputs.VERSION }}
|
|
|
|
deploy-formbricks-cloud:
|
|
name: Deploy Helm Chart to Formbricks Cloud
|
|
secrets: inherit
|
|
uses: ./.github/workflows/deploy-formbricks-cloud.yml
|
|
needs:
|
|
- docker-build
|
|
- helm-chart-release
|
|
with:
|
|
VERSION: v${{ needs.docker-build.outputs.VERSION }}
|
|
ENVIRONMENT: ${{ env.ENVIRONMENT }}
|
|
|
|
upload-sentry-sourcemaps:
|
|
name: Upload Sentry Sourcemaps
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
needs:
|
|
- docker-build
|
|
- deploy-formbricks-cloud
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4.2.2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Upload Sentry Sourcemaps
|
|
uses: ./.github/actions/upload-sentry-sourcemaps
|
|
continue-on-error: true
|
|
with:
|
|
docker_image: ghcr.io/formbricks/formbricks:v${{ needs.docker-build.outputs.VERSION }}
|
|
release_version: v${{ needs.docker-build.outputs.VERSION }}
|
|
sentry_auth_token: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
environment: ${{ env.ENVIRONMENT }}
|