From a690b0de1e591ad48afcb155a84dd7236bcc3d8f Mon Sep 17 00:00:00 2001 From: Darshan Date: Fri, 16 May 2025 16:49:47 +0530 Subject: [PATCH 1/4] add: max-age for env. --- docker/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/nginx.conf b/docker/nginx.conf index 2f7987a9f..4b8720ef2 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -15,6 +15,11 @@ server { add_header Cache-Control "public, max-age=30" always; } + location = /console/_app/env.js { + root /usr/share/nginx/html; + add_header Cache-Control "public, max-age=30" always; + } + location /console { root /usr/share/nginx/html; index index.html index.htm; From 6525bccdb4dcadcc485f4a19a495dfe40c7b8844 Mon Sep 17 00:00:00 2001 From: Darshan Date: Fri, 16 May 2025 16:58:56 +0530 Subject: [PATCH 2/4] new: sites qa image. --- .github/workflows/publish.yml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4c761e03e..2ab7cd3a8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -117,3 +117,41 @@ jobs: "PUBLIC_CONSOLE_MODE=self-hosted" "PUBLIC_APPWRITE_MULTI_REGION=false" "PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}" + + publish-cloud-sites-qa: + runs-on: ubuntu-latest + steps: + - name: Checkout the repo + uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: appwrite/console-cloud-sites-qa + tags: | + type=semver,pattern={{major}}.{{minor}}.{{patch}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + - name: Build and push Docker image + id: push + uses: docker/build-push-action@v6 + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + build-args: | + "PUBLIC_CONSOLE_MODE=cloud" + "PUBLIC_APPWRITE_MULTI_REGION=false" + "PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY }}" + "PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}" From 9bc702b863b7ecb1bc73423997ca3309fde50fae Mon Sep 17 00:00:00 2001 From: Darshan Date: Fri, 16 May 2025 17:01:55 +0530 Subject: [PATCH 3/4] update: lint, better name. --- .github/workflows/publish.yml | 74 +++++++++++++++++------------------ 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2ab7cd3a8..8674ccf43 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -118,40 +118,40 @@ jobs: "PUBLIC_APPWRITE_MULTI_REGION=false" "PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}" - publish-cloud-sites-qa: - runs-on: ubuntu-latest - steps: - - name: Checkout the repo - uses: actions/checkout@v2 - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - name: Log in to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ vars.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v5 - with: - images: appwrite/console-cloud-sites-qa - tags: | - type=semver,pattern={{major}}.{{minor}}.{{patch}} - type=semver,pattern={{major}}.{{minor}} - type=semver,pattern={{major}} - - name: Build and push Docker image - id: push - uses: docker/build-push-action@v6 - with: - context: . - push: true - platforms: linux/amd64,linux/arm64 - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - build-args: | - "PUBLIC_CONSOLE_MODE=cloud" - "PUBLIC_APPWRITE_MULTI_REGION=false" - "PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY }}" - "PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}" + publish-cloud-no-regions: + runs-on: ubuntu-latest + steps: + - name: Checkout the repo + uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: appwrite/console-cloud-no-regions + tags: | + type=semver,pattern={{major}}.{{minor}}.{{patch}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + - name: Build and push Docker image + id: push + uses: docker/build-push-action@v6 + with: + context: . + push: true + platforms: linux/amd64,linux/arm64 + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + build-args: | + "PUBLIC_CONSOLE_MODE=cloud" + "PUBLIC_APPWRITE_MULTI_REGION=false" + "PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY }}" + "PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}" From eff25f8816a2e5c2de5748b67e2e47335ea3e6b7 Mon Sep 17 00:00:00 2001 From: Darshan Date: Fri, 16 May 2025 17:15:45 +0530 Subject: [PATCH 4/4] update: mark stage key. --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8674ccf43..2a37e81d1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -153,5 +153,5 @@ jobs: build-args: | "PUBLIC_CONSOLE_MODE=cloud" "PUBLIC_APPWRITE_MULTI_REGION=false" - "PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY }}" + "PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY_STAGE }}" "PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"