feat: push images to github registry

This commit is contained in:
Christy Jacob
2024-12-31 11:57:14 +05:30
parent 0ab86f4dac
commit e7469ece12
+5 -2
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,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