From b82b73d35288a36f25874249858c5e8c14bce12f Mon Sep 17 00:00:00 2001 From: xchen Date: Mon, 30 Sep 2024 14:59:15 -0700 Subject: [PATCH] (temporary) change GitHub action to build another Linux image --- .github/workflows/templates-build-push-image.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/templates-build-push-image.yml b/.github/workflows/templates-build-push-image.yml index fc7a2afc6..23e9403d7 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 @@ -22,15 +25,12 @@ jobs: - name: "Determine preview artifact version" run: | echo "artifact_full_version=${{ inputs.version }}-${{ github.sha }}" >> $GITHUB_ENV - - name: "Determine full container image uri (commit)" run: | echo "image_commit_uri=${{ inputs.image_name }}:$artifact_full_version" >> $GITHUB_ENV - - name: "Determine full container image uri (latest)" run: | echo "image_latest_uri=${{ inputs.image_name }}:${{ inputs.version }}" >> $GITHUB_ENV - - name: Determine container image metadata uses: docker/metadata-action@v5.5.1 with: @@ -40,7 +40,7 @@ jobs: uses: docker/login-action@v3 with: registry: ghcr.io - username: tomkerkhove + username: hkfgo password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push preview image @@ -49,5 +49,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 }} + tags: ghcr.io/hkfgo/${{ env.image_commit_uri }},ghcr.io/hkfgo/${{ env.image_latest_uri }} push: true \ No newline at end of file