From 24e7f23b23d4b2c29ed4f4b8da646de55b2367d5 Mon Sep 17 00:00:00 2001 From: Kense Date: Tue, 9 Jan 2024 11:27:49 +0800 Subject: [PATCH] chore: use docker hub repository --- .github/workflows/docker-image.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 53b7bb6..38c37b0 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -8,8 +8,7 @@ on: types: [ published ] env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} + IMAGE_NAME: 'samepaage/open-assistant-api' jobs: build-and-push: @@ -29,15 +28,14 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v2 with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GH_TOKEN }} + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: ${{ env.IMAGE_NAME }} tags: | type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }} type=ref,event=branch