Skip to content

Commit

Permalink
[add]: revise github workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
IMHOJEONG committed Nov 7, 2023
1 parent ea11531 commit e398613
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit e398613

Please sign in to comment.