From 4128b4d1d57e27af8387053281547c14ac6df905 Mon Sep 17 00:00:00 2001
From: darrylong <darrylong@users.noreply.github.com>
Date: Wed, 6 Mar 2024 15:20:56 +0800
Subject: [PATCH] Update GitHub actions build docker image registry (#596)

Change docker registry to ghcr.io
---
 .github/workflows/image-publish.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/image-publish.yml b/.github/workflows/image-publish.yml
index 0b90027e..01ad6287 100644
--- a/.github/workflows/image-publish.yml
+++ b/.github/workflows/image-publish.yml
@@ -22,7 +22,7 @@ jobs:
             VERSION=${GITHUB_REF#refs/tags/}
             VERSION="${VERSION:1}"
           fi
-          IMAGE="registry.preferred.ai/cornac/cornac-server"
+          IMAGE="ghcr.io/preferredai/cornac-server"
           echo ::set-output name=tagged_image::${IMAGE}:${VERSION},${IMAGE}:latest
         shell: bash
 
@@ -36,9 +36,9 @@ jobs:
       - name: Login to registry
         uses: docker/login-action@v3
         with:
-          registry: registry.preferred.ai
-          username: ${{ secrets.PREFERRED_REGISTRY_USERNAME }}
-          password: ${{ secrets.PREFERRED_REGISTRY_PASSWORD }}
+          registry: ghcr.io
+          username: ${{ github.actor }}
+          password: ${{ secrets.GITHUB_TOKEN }}
 
       - name: Build and push
         uses: docker/build-push-action@v5
-- 
GitLab