From 6647ef140460d8b5027112a4a7ab3c6b449ea29c Mon Sep 17 00:00:00 2001 From: xchen Date: Wed, 1 May 2024 20:09:31 -0700 Subject: [PATCH 1/2] github action image build --- .github/workflows/templates-build-push-image.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/templates-build-push-image.yml b/.github/workflows/templates-build-push-image.yml index 60a8380f8..bf457cfc8 100644 --- a/.github/workflows/templates-build-push-image.yml +++ b/.github/workflows/templates-build-push-image.yml @@ -1,5 +1,6 @@ +name: Build and Push (Linux) on: - workflow_call: + workflow_dispatch: inputs: image_name: required: true @@ -15,6 +16,8 @@ jobs: linux: name: Build & Push (Linux) runs-on: ubuntu-latest + permissions: + packages: write steps: - name: Checkout Code uses: actions/checkout@v4 @@ -40,7 +43,7 @@ jobs: uses: docker/login-action@v3 with: registry: ghcr.io - username: tomkerkhove + username: locmai password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push preview image @@ -49,5 +52,5 @@ jobs: build-args: VERSION="${{ env.artifact_full_version }}" context: ./src/ file: ./src/${{ inputs.project_name }}/Dockerfile.linux - tags: ${{ env.image_commit_uri }},${{ env.image_latest_uri }} - push: true + tags: ghcr.io/locmai/${{ env.image_commit_uri }},ghcr.io/locmai/${{ env.image_latest_uri }} + push: true \ No newline at end of file From 77640a7a1050b5a39c6972deac22e1b4fce751bf Mon Sep 17 00:00:00 2001 From: xchen Date: Wed, 1 May 2024 20:27:55 -0700 Subject: [PATCH 2/2] github action image build --- .github/workflows/templates-build-push-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/templates-build-push-image.yml b/.github/workflows/templates-build-push-image.yml index bf457cfc8..16f5d8440 100644 --- a/.github/workflows/templates-build-push-image.yml +++ b/.github/workflows/templates-build-push-image.yml @@ -43,7 +43,7 @@ jobs: uses: docker/login-action@v3 with: registry: ghcr.io - username: locmai + username: hkfgo password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push preview image @@ -52,5 +52,5 @@ jobs: build-args: VERSION="${{ env.artifact_full_version }}" context: ./src/ file: ./src/${{ inputs.project_name }}/Dockerfile.linux - tags: ghcr.io/locmai/${{ env.image_commit_uri }},ghcr.io/locmai/${{ env.image_latest_uri }} + tags: ghcr.io/hkfgo/${{ env.image_commit_uri }},ghcr.io/hkfgo/${{ env.image_latest_uri }} push: true \ No newline at end of file