diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 98bd621..50e885d 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -24,6 +24,9 @@ jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + service: [ "facade", "auth" ,"user" ] permissions: contents: read packages: write @@ -65,7 +68,7 @@ jobs: id: meta uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ matrix.service }} # Build and push Docker image with Buildx (don't push on PR) # https://github.com/docker/build-push-action @@ -73,7 +76,7 @@ jobs: id: build-and-push uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 with: - context: . + context: app/${{ matrix.service }}/. push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}