From e41e9a4734972efe4a5305a65501e98f81d8b016 Mon Sep 17 00:00:00 2001 From: Lynn Orrell Date: Tue, 18 May 2021 10:34:16 -0500 Subject: [PATCH] Update package-services.yaml --- .github/workflows/package-services.yaml | 72 ++++++++++++------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/package-services.yaml b/.github/workflows/package-services.yaml index 7c310b5..5ed5edb 100644 --- a/.github/workflows/package-services.yaml +++ b/.github/workflows/package-services.yaml @@ -30,42 +30,42 @@ jobs: echo ::set-output name=services::[\"AccountingService accounting-service\", \"LoyaltyService loyalty-service\", \"MakeLineService make-line-service\", \"OrderService order-service\", \"ReceiptGenerationService receipt-generation-service\", \"VirtualWorker virtual-worker\", \"VirtualCustomers virtual-customers\", \"Bootstrapper bootstrapper\", \"UI ui\"] echo ::set-output name=repositories::[\"ghcr.io/lynn-orrell/reddog\", \"ghcr.io/cloudnativegbb/paas-vnext\"] -# package-services: -# name: Package Services -# runs-on: ubuntu-latest -# needs: set-env -# strategy: -# matrix: -# service: ${{ fromJSON(needs.set-env.outputs.services) }} -# repository: ${{ fromJSON(needs.set-env.outputs.repositories) }} -# steps: -# - uses: jungwinter/split@v1 -# id: service-split -# with: -# msg: ${{ matrix.service }} -# - name: Checkout -# uses: actions/checkout@v2 -# - name: Set up Docker Buildx -# uses: docker/setup-buildx-action@v1 -# - name: Login to GitHub Container Registry -# uses: docker/login-action@v1 -# with: -# registry: ghcr.io -# username: ${{ github.actor }} -# password: ${{ secrets.CR_PAT }} -# - name: Build and push -# uses: docker/build-push-action@v2 -# with: -# context: . -# file: RedDog.${{ steps.service-split.outputs._0 }}/Dockerfile -# push: true -# tags: | -# ${{ matrix.repository }}/reddog-${{ steps.service-split.outputs._1 }}:latest -# ${{ matrix.repository }}/reddog-${{ steps.service-split.outputs._1 }}:${{ needs.set-env.outputs.version }} -# labels: | -# org.opencontainers.image.source=${{ github.event.repository.html_url }} -# org.opencontainers.image.created=${{ steps.prep.outputs.created }} -# org.opencontainers.image.revision=${{ github.sha }} + package-services: + name: Package Services + runs-on: ubuntu-latest + needs: set-env + strategy: + matrix: + service: ${{ fromJSON(needs.set-env.outputs.services) }} + repository: ${{ fromJSON(needs.set-env.outputs.repositories) }} + steps: + - uses: jungwinter/split@v1 + id: service-split + with: + msg: ${{ matrix.service }} + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.CR_PAT }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + file: RedDog.${{ steps.service-split.outputs._0 }}/Dockerfile + push: true + tags: | + ${{ matrix.repository }}/reddog-${{ steps.service-split.outputs._1 }}:latest + ${{ matrix.repository }}/reddog-${{ steps.service-split.outputs._1 }}:${{ needs.set-env.outputs.version }} + labels: | + org.opencontainers.image.source=${{ github.event.repository.html_url }} + org.opencontainers.image.created=${{ steps.prep.outputs.created }} + org.opencontainers.image.revision=${{ github.sha }} copy-manifests: runs-on: ubuntu-latest