From e7469ece12abeca2b38cd3efdab47a2470b0f89a Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Tue, 31 Dec 2024 11:54:39 +0530 Subject: [PATCH] feat: push images to github registry --- .github/workflows/publish.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f914e662d3..c6fa1d7a52 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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,6 +44,7 @@ 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