From e3986134ba37afcaeda729269acfc9b7ed882542 Mon Sep 17 00:00:00 2001 From: IMHOJEONG <39ghwjd@naver.com> Date: Tue, 7 Nov 2023 21:36:47 +0900 Subject: [PATCH] [add]: revise github workflow file --- .github/workflows/deploy-image.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-image.yml b/.github/workflows/deploy-image.yml index 99cd27f..fa7d236 100644 --- a/.github/workflows/deploy-image.yml +++ b/.github/workflows/deploy-image.yml @@ -10,11 +10,9 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - include: - - image: pwrcode-frontend - dockerfile: apps/pwrcode-frontend - - image: pwrcode-backend - dockerfile: apps/pwrcode-backend + context: + - apps/pwrcode-frontend + - apps/pwrcode-backend steps: - name: checkout repository uses: actions/checkout@v4 @@ -28,11 +26,11 @@ jobs: id: meta uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: - images: ${{ env.REGISTRY }}/${{ matrix.image }} + images: ${{ env.REGISTRY }}/${{ matrix.context }} - name: Build and push Docker image uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: - context: . + context: ./${{ matrix.context }} push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}