From e65737baf90e5c22b4fae3f5d797173089b60143 Mon Sep 17 00:00:00 2001 From: sjy2335 Date: Wed, 13 Nov 2024 00:03:06 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20docker=20buildx=20setup=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy-service.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-service.yml b/.github/workflows/deploy-service.yml index 6f583a4b..ad0d7ebf 100644 --- a/.github/workflows/deploy-service.yml +++ b/.github/workflows/deploy-service.yml @@ -35,6 +35,9 @@ jobs: sparse-checkout: | ${{ inputs.path }} + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Cache Docker images uses: actions/cache@v3 with: @@ -69,8 +72,8 @@ jobs: context: ./${{ inputs.service }}/${{ inputs.path }} file: ./${{ inputs.service }}/${{ inputs.path }}/Dockerfile tags: | - ghcr.io/${{ github.repository_owner }}/${{ inputs.service }}:${{ github.sha }} - ghcr.io/${{ github.repository_owner }}/${{ inputs.service }}:latest + ghcr.io/${{ github.repository_owner }}/${{ inputs.service }}/${{ inputs.path }}:${{ github.sha }} + ghcr.io/${{ github.repository_owner }}/${{ inputs.service }}/${{ inputs.path }}:latest cache-from: type=gha cache-to: type=gha,mode=max