From 605a6f3a34d4312010562508cdbe4720997da1b3 Mon Sep 17 00:00:00 2001 From: Levi van Noort <73097785+levivannoort@users.noreply.github.com> Date: Wed, 2 Sep 2026 12:36:10 +0200 Subject: [PATCH] chore(deploy): drop the deploy job, keep the image build appwrite.io moved to the console release (appwrite/new) on 2026-08-31, and the website Deployment is being removed from the assets clusters, so the values file this job writes into no longer exists: appwrite-labs/cluster-configuration-generator#225 appwrite-labs/application-configuration#173 The job ran `yq -i '.global.image.tag = ...'` against assets//website/default.yaml and pushed straight to that repo's main. `yq -i` exits 1 on a missing path rather than creating a stub, so this would have failed loudly on the next published release -- and production.yml fires on `release: published`, which happens regularly. The build job is untouched: the image still builds and pushes to both ghcr and Docker Hub under the release tag, so nothing that may still consume appwrite/website is affected. Only the declarative-deploy half goes away. Also drops the five env keys the deploy job alone used (ENVIRONMENT, PROJECT, APPLICATION, DECLARATIVE_OWNER, DECLARATIVE_REPOSITORY). The build job reads only TAG, IMAGE_NAME and the two REGISTRY_* keys, all of which stay. --- .github/workflows/production.yml | 43 -------------------------------- .github/workflows/staging.yml | 42 ------------------------------- 2 files changed, 85 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index a8ddbb9823..56ffb2062a 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -6,11 +6,6 @@ on: workflow_dispatch: env: - ENVIRONMENT: production - PROJECT: assets - APPLICATION: website - DECLARATIVE_OWNER: appwrite-labs - DECLARATIVE_REPOSITORY: application-configuration REGISTRY_GITHUB: ghcr.io REGISTRY_DOCKERHUB: docker.io IMAGE_NAME: appwrite/website @@ -62,41 +57,3 @@ jobs: "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" "SENTRY_RELEASE=${{ github.event.release.tag_name }}" - - deploy: - if: github.event_name != 'release' || !contains(github.event.release.tag_name, '-rc') - needs: build - runs-on: ubuntu-latest - concurrency: - group: declarative-deploy-website - cancel-in-progress: false - steps: - - name: Get token for ${{ env.DECLARATIVE_REPOSITORY }} - id: app-token - uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2 - with: - app-id: ${{ vars.DECLARATIVE_DEPLOYMENT_GITHUB_APP_ID }} - private-key: ${{ secrets.DECLARATIVE_DEPLOYMENT_GITHUB_APP_PRIVATE_KEY }} - owner: ${{ env.DECLARATIVE_OWNER }} - repositories: ${{ env.DECLARATIVE_REPOSITORY }} - - - name: Checkout ${{ env.DECLARATIVE_REPOSITORY }} - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - with: - repository: ${{ env.DECLARATIVE_OWNER }}/${{ env.DECLARATIVE_REPOSITORY }} - token: ${{ steps.app-token.outputs.token }} - - - name: Update image tag - run: yq -i '.global.image.tag = strenv(TAG)' ${{ env.PROJECT }}/${{ env.ENVIRONMENT }}/${{ env.APPLICATION }}/default.yaml - - - name: Commit and push - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add ${{ env.PROJECT }}/${{ env.ENVIRONMENT }}/${{ env.APPLICATION }}/default.yaml - if git diff --cached --quiet; then - echo "No changes to commit" - else - git commit -m "chore(${{ env.ENVIRONMENT }}): ${{ env.APPLICATION }} image tag to ${{ env.TAG }}" - git push - fi diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 61ad7bb37f..66d0a2d592 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -8,11 +8,6 @@ concurrency: cancel-in-progress: false env: - ENVIRONMENT: staging - PROJECT: assets - APPLICATION: website - DECLARATIVE_OWNER: appwrite-labs - DECLARATIVE_REPOSITORY: application-configuration REGISTRY_GITHUB: ghcr.io REGISTRY_DOCKERHUB: docker.io IMAGE_NAME: appwrite/website @@ -63,40 +58,3 @@ jobs: "APPWRITE_API_KEY_INIT=${{ secrets.APPWRITE_API_KEY_INIT }}" "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" "SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}" - - deploy: - needs: build - runs-on: ubuntu-latest - concurrency: - group: declarative-deploy-website - cancel-in-progress: false - steps: - - name: Get token for ${{ env.DECLARATIVE_REPOSITORY }} - id: app-token - uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2 - with: - app-id: ${{ vars.DECLARATIVE_DEPLOYMENT_GITHUB_APP_ID }} - private-key: ${{ secrets.DECLARATIVE_DEPLOYMENT_GITHUB_APP_PRIVATE_KEY }} - owner: ${{ env.DECLARATIVE_OWNER }} - repositories: ${{ env.DECLARATIVE_REPOSITORY }} - - - name: Checkout ${{ env.DECLARATIVE_REPOSITORY }} - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 - with: - repository: ${{ env.DECLARATIVE_OWNER }}/${{ env.DECLARATIVE_REPOSITORY }} - token: ${{ steps.app-token.outputs.token }} - - - name: Update image tag - run: yq -i '.global.image.tag = strenv(TAG)' ${{ env.PROJECT }}/${{ env.ENVIRONMENT }}/${{ env.APPLICATION }}/default.yaml - - - name: Commit and push - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add ${{ env.PROJECT }}/${{ env.ENVIRONMENT }}/${{ env.APPLICATION }}/default.yaml - if git diff --cached --quiet; then - echo "No changes to commit" - else - git commit -m "chore(${{ env.ENVIRONMENT }}): ${{ env.APPLICATION }} image tag to ${{ env.TAG }}" - git push - fi