This commit is contained in:
Lynn Orrell 2021-05-18 10:34:16 -05:00 коммит произвёл GitHub
Родитель 4a81810079
Коммит e41e9a4734
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 36 добавлений и 36 удалений

72
.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