chore(deploy): push image bumps to application-configuration

The cloud values moved out of appwrite-labs/cloud-applications into the
consolidated appwrite-labs/application-configuration repository, which is
laid out as <project>/<env>/<app> instead of <env>/<app>.

The values path was hardcoded; it now builds from PROJECT/ENVIRONMENT/
APPLICATION like the other deploy workflows. The tag still lands on the
`cloud-console` alias inside the cloud release, and production still
opens a reviewed PR rather than pushing to main.
This commit is contained in:
Levi van Noort committed 2026-08-16 11:38:56 +02:00
1 parent 8c1b58a6d2
commit d4ee362b4a
2 files changed
+12 -8

No files matched your search

+6 -4
View File
@@ -11,8 +11,10 @@ concurrency:
env:
ENVIRONMENT: production
PROJECT: cloud
APPLICATION: cloud
DECLARATIVE_OWNER: appwrite-labs
DECLARATIVE_REPOSITORY: cloud-applications
DECLARATIVE_REPOSITORY: application-configuration
DECLARATIVE_ALIAS: cloud-console
IMAGE_NAME: appwrite/console-cloud
TAG: ${{ github.event.release.tag_name || github.sha }}
@@ -54,7 +56,7 @@ jobs:
needs: build
runs-on: ubuntu-latest
# Shared across the staging and production workflows so their deploy
# jobs never push to cloud-applications at the same time.
# jobs never push to application-configuration at the same time.
concurrency:
group: declarative-deploy
cancel-in-progress: false
@@ -77,7 +79,7 @@ jobs:
persist-credentials: false
- name: Update image tag
run: yq -i '.[strenv(DECLARATIVE_ALIAS)].image.tag = strenv(TAG)' ${{ env.ENVIRONMENT }}/cloud/default.yaml
run: yq -i '.[strenv(DECLARATIVE_ALIAS)].image.tag = strenv(TAG)' ${{ env.PROJECT }}/${{ env.ENVIRONMENT }}/${{ env.APPLICATION }}/default.yaml
- name: Open pull request
# The release author reviews; falls back to the dispatcher for
@@ -90,7 +92,7 @@ jobs:
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add ${{ env.ENVIRONMENT }}/cloud/default.yaml
git add ${{ env.PROJECT }}/${{ env.ENVIRONMENT }}/${{ env.APPLICATION }}/default.yaml
if git diff --cached --quiet; then
echo "No changes to commit"
exit 0
+6 -4
View File
@@ -12,8 +12,10 @@ concurrency:
env:
ENVIRONMENT: staging
PROJECT: cloud
APPLICATION: cloud
DECLARATIVE_OWNER: appwrite-labs
DECLARATIVE_REPOSITORY: cloud-applications
DECLARATIVE_REPOSITORY: application-configuration
DECLARATIVE_ALIAS: cloud-console
IMAGE_NAME: appwrite/console-cloud-stage
TAG: ${{ github.sha }}
@@ -54,7 +56,7 @@ jobs:
needs: build
runs-on: ubuntu-latest
# Shared across the staging and production workflows so their deploy
# jobs never push to cloud-applications at the same time.
# jobs never push to application-configuration at the same time.
concurrency:
group: declarative-deploy
cancel-in-progress: false
@@ -77,7 +79,7 @@ jobs:
persist-credentials: false
- name: Update image tag
run: yq -i '.[strenv(DECLARATIVE_ALIAS)].image.tag = strenv(TAG)' ${{ env.ENVIRONMENT }}/cloud/default.yaml
run: yq -i '.[strenv(DECLARATIVE_ALIAS)].image.tag = strenv(TAG)' ${{ env.PROJECT }}/${{ env.ENVIRONMENT }}/${{ env.APPLICATION }}/default.yaml
- name: Commit and push
env:
@@ -85,7 +87,7 @@ jobs:
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add ${{ env.ENVIRONMENT }}/cloud/default.yaml
git add ${{ env.PROJECT }}/${{ env.ENVIRONMENT }}/${{ env.APPLICATION }}/default.yaml
if git diff --cached --quiet; then
echo "No changes to commit"
else