feat: use ghcr for cloud images

This commit is contained in:
Christy Jacob
2024-12-31 12:00:41 +05:30
parent 7ecba8c0f2
commit d4a0a12bd8
+6 -3
View File
@@ -1,6 +1,7 @@
name: "Build and Publish Appwrite Images for Cloud"
on:
workflow_dispatch:
push:
tags:
- cl-*
@@ -26,8 +27,9 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
@@ -42,10 +44,11 @@ jobs:
with:
context: .
platforms: linux/amd64,linux/arm64
registry: ghcr.io
build-args: |
VERSION=${{ steps.meta.outputs.version }}
VITE_APPWRITE_GROWTH_ENDPOINT=https://growth.appwrite.io/v1
VITE_GA_PROJECT=G-L7G2B6PLDS
VITE_CONSOLE_MODE=cloud
push: true
tags: ${{ steps.meta.outputs.tags }}
tags: ${{ steps.meta.outputs.tags }}