Compare commits

...

14 Commits

Author SHA1 Message Date
Sudhanshu Pandey
b6985f2920 Update ecs-deployment.yml 2024-02-01 14:45:42 -05:00
Sudhanshu Pandey
942fd89f46 Update ecs-deployment.yml 2024-02-01 14:35:53 -05:00
Sudhanshu Pandey
00c34b80b8 Update ecs-deployment.yml 2024-02-01 14:20:10 -05:00
Sudhanshu Pandey
3b8541426c Update ecs-deployment.yml 2024-02-01 14:04:45 -05:00
Sudhanshu Pandey
400ab64cb4 Update ecs-deployment.yml 2024-02-01 14:02:27 -05:00
Sudhanshu Pandey
4ce977310f Update ecs-deployment.yml 2024-02-01 13:58:44 -05:00
Sudhanshu Pandey
ea7a793a29 Update ecs-deployment.yml 2024-02-01 13:47:39 -05:00
Sudhanshu Pandey
63eb80463d Update ecs-deployment.yml 2024-02-01 13:31:38 -05:00
Sudhanshu Pandey
b23ab5c504 Update ecs-deployment.yml 2024-02-01 13:20:02 -05:00
Sudhanshu Pandey
76f8d32045 Update ecs-deployment.yml 2024-02-01 13:05:29 -05:00
Sudhanshu Pandey
922847d79e Update ecs-deployment.yml 2024-02-01 13:00:52 -05:00
Sudhanshu Pandey
dce3203e15 Update ecs-deployment.yml 2024-02-01 12:55:38 -05:00
Sudhanshu Pandey
960355d748 Update ecs-deployment.yml 2024-02-01 12:41:45 -05:00
Sudhanshu Pandey
58d78ff576 Update ecs-deployment.yml 2024-02-01 12:23:29 -05:00

View File

@@ -15,7 +15,7 @@ env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
# 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"
jobs:
@@ -66,14 +66,16 @@ jobs:
uses: docker/metadata-action@v5 # v5.0.0
with:
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
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: depot/build-push-action@v1
env:
env:
NEXT_PUBLIC_SENTRY_DSN: ${{ secrets.NEXT_PUBLIC_SENTRY_DSN }}
with:
project: tw0fqmsx3c
@@ -81,6 +83,7 @@ jobs:
context: .
file: ./apps/web/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
@@ -90,16 +93,20 @@ jobs:
DATABASE_URL=${{ env.DATABASE_URL }}
ENCRYPTION_KEY=${{ env.ENCRYPTION_KEY }}
NEXT_PUBLIC_SENTRY_DSN=${{ env.NEXT_PUBLIC_SENTRY_DSN }}
- name: Sign the published Docker image
env:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
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}
# # This will only write to the public Rekor transparency log when the Docker
# # repository is public to avoid leaking data. If you would like to publish
# # transparency data even for private images, pass --force to cosign below.
# # https://github.com/sigstore/cosign
# - name: Sign the published Docker image
# env:
# # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
# 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:
needs: build
runs-on: ubuntu-latest