diff --git a/.github/workflows/release-docker-github.yml b/.github/workflows/release-docker-github.yml index fbbe5244c8..ea348eba99 100644 --- a/.github/workflows/release-docker-github.yml +++ b/.github/workflows/release-docker-github.yml @@ -1,4 +1,9 @@ -name: Docker Release to GitHub +name: Docker Release to Github + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. on: workflow_dispatch: @@ -48,17 +53,6 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Set tags based on event type - id: set-tags - run: | - if [[ "${{ github.event_name }}" == "push" ]]; then - if [[ "${{ github.ref }}" == refs/tags/v* ]]; then - echo "::set-output name=tags::latest,${{ github.ref }}" - fi - elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then - echo "::set-output name=tags::experimental" - fi - # Extract metadata (tags, labels) for Docker # https://github.com/docker/metadata-action - name: Extract Docker metadata @@ -66,7 +60,6 @@ jobs: uses: docker/metadata-action@v5 # v5.0.0 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - tags: ${{ steps.set-tags.outputs.tags }} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action diff --git a/.github/workflows/release-docker.yml b/.github/workflows/release-docker.yml new file mode 100644 index 0000000000..e162b2f239 --- /dev/null +++ b/.github/workflows/release-docker.yml @@ -0,0 +1,44 @@ +name: Release on Dockerhub + +on: + push: + tags: + - "v*" + +jobs: + release-image-on-dockerhub: + name: Release on Dockerhub + runs-on: ubuntu-latest + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ secrets.TURBO_TEAM }} + DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/formbricks?schema=public" + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + + - name: Log in to Docker Hub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Get Release Tag + id: extract_release_tag + run: | + TAG=${{ github.ref }} + TAG=${TAG#refs/tags/v} + echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV + + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + context: . + file: ./apps/web/Dockerfile + push: true + tags: | + ${{ secrets.DOCKER_USERNAME }}/formbricks:${{ env.RELEASE_TAG }} + ${{ secrets.DOCKER_USERNAME }}/formbricks:latest diff --git a/apps/docs/app/self-hosting/migration-guide/page.mdx b/apps/docs/app/self-hosting/migration-guide/page.mdx index 1bcbcb0244..348376ce28 100644 --- a/apps/docs/app/self-hosting/migration-guide/page.mdx +++ b/apps/docs/app/self-hosting/migration-guide/page.mdx @@ -17,14 +17,18 @@ Formbricks v2.0 comes with huge features such as Multi-Language Surveys and Adva the upgrade. Follow the below steps thoroughly to upgrade your Formbricks instance to v2.0. -and - If you've used the Formbricks Enterprise Edition with a free beta license key, your instance will be downgraded to the Community Edition 2.0. You find all license details on the [license page.](/self-hosting/license/) + + We are moving from DockerHub to Github Packages for our images. If you are still pulling the images from + DockerHub please change `image: formbricks/formbricks:latest` to + `image:ghcr.io/formbricks/formbricks:latest` in your `docker-compose.yml` file. + + ### Steps to Migrate This guide is for users who are self-hosting Formbricks using our one-click setup. If you are using a different setup, you might adjust the commands accordingly.