mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-21 11:30:27 -05:00
Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b6985f2920 | |||
| 942fd89f46 | |||
| 00c34b80b8 | |||
| 3b8541426c | |||
| 400ab64cb4 | |||
| 4ce977310f | |||
| ea7a793a29 | |||
| 63eb80463d | |||
| b23ab5c504 | |||
| 76f8d32045 | |||
| 922847d79e | |||
| dce3203e15 | |||
| 960355d748 | |||
| 58d78ff576 |
@@ -15,7 +15,7 @@ env:
|
|||||||
# Use docker.io for Docker Hub if empty
|
# Use docker.io for Docker Hub if empty
|
||||||
REGISTRY: ghcr.io
|
REGISTRY: ghcr.io
|
||||||
# github.repository as <account>/<repo>
|
# github.repository as <account>/<repo>
|
||||||
IMAGE_NAME: ${{ github.repository }}/formbricks-experimental
|
IMAGE_NAME: formbricks/formbricks-experimental
|
||||||
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/formbricks?schema=public"
|
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/formbricks?schema=public"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -66,14 +66,16 @@ jobs:
|
|||||||
uses: docker/metadata-action@v5 # v5.0.0
|
uses: docker/metadata-action@v5 # v5.0.0
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
|
tags: |
|
||||||
|
type=sha,format=long
|
||||||
|
type=raw,value=latest,enable={{is_default_branch}}
|
||||||
|
|
||||||
# Build and push Docker image with Buildx
|
# Build and push Docker image with Buildx
|
||||||
|
|
||||||
# https://github.com/docker/build-push-action
|
# https://github.com/docker/build-push-action
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
uses: depot/build-push-action@v1
|
uses: depot/build-push-action@v1
|
||||||
env:
|
env:
|
||||||
NEXT_PUBLIC_SENTRY_DSN: ${{ secrets.NEXT_PUBLIC_SENTRY_DSN }}
|
NEXT_PUBLIC_SENTRY_DSN: ${{ secrets.NEXT_PUBLIC_SENTRY_DSN }}
|
||||||
with:
|
with:
|
||||||
project: tw0fqmsx3c
|
project: tw0fqmsx3c
|
||||||
@@ -81,6 +83,7 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
file: ./apps/web/Dockerfile
|
file: ./apps/web/Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
@@ -90,16 +93,20 @@ jobs:
|
|||||||
DATABASE_URL=${{ env.DATABASE_URL }}
|
DATABASE_URL=${{ env.DATABASE_URL }}
|
||||||
ENCRYPTION_KEY=${{ env.ENCRYPTION_KEY }}
|
ENCRYPTION_KEY=${{ env.ENCRYPTION_KEY }}
|
||||||
NEXT_PUBLIC_SENTRY_DSN=${{ env.NEXT_PUBLIC_SENTRY_DSN }}
|
NEXT_PUBLIC_SENTRY_DSN=${{ env.NEXT_PUBLIC_SENTRY_DSN }}
|
||||||
|
|
||||||
- name: Sign the published Docker image
|
# # This will only write to the public Rekor transparency log when the Docker
|
||||||
env:
|
# # repository is public to avoid leaking data. If you would like to publish
|
||||||
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
|
# # transparency data even for private images, pass --force to cosign below.
|
||||||
TAGS: ${{ steps.meta.outputs.tags }}
|
# # https://github.com/sigstore/cosign
|
||||||
DIGEST: ${{ steps.build-and-push.outputs.digest }}
|
# - name: Sign the published Docker image
|
||||||
# This step uses the identity token to provision an ephemeral certificate
|
# env:
|
||||||
# against the sigstore community Fulcio instance.
|
# # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
|
||||||
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}${DIGEST}
|
# TAGS: ${{ steps.meta.outputs.tags }}
|
||||||
|
# DIGEST: ${{ steps.build-and-push.outputs.digest }}
|
||||||
|
# # This step uses the identity token to provision an ephemeral certificate
|
||||||
|
# # against the sigstore community Fulcio instance.
|
||||||
|
# run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user