Container Image Publishing On Pull Request

* Create workflow files that trigger container build and publish on pull request actions
This commit is contained in:
julian-mcnichols 2022-06-23 10:31:16 -05:00
Родитель bf4f16dee0
Коммит aa7f5e82d5
4 изменённых файлов: 104 добавлений и 0 удалений

26
.github/workflows/container-image-build-saas-admin-pr.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,26 @@
on:
pull_request:
branches:
- main
paths:
- "src/Saas.Admin/**"
- ".github/**"
name: CI/CD - PR - Container Image Build and Webhook - Saas.Admin.Service
jobs:
build-image:
name: Build and Publish Image
uses: Azure/azure-saas/.github/workflows/template-container-image-build.yml@main
with:
image_to_push: asdk-admin
tag_name: PR_$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
# Add webhook jobs below here for each environment you want to automatically update
webhook-dev:
name: Image Build Webhook - Dev
needs: build-image
if: needs.build-image.result == 'success'
uses: Azure/azure-saas/.github/workflows/template-container-image-webhook.yml@main
secrets:
WEBHOOK_URL: ${{ secrets.ASDK_ADMIN_DEV_WEBHOOK_URL }}

26
.github/workflows/container-image-build-saas-application-pr.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,26 @@
on:
pull_request:
branches:
- main
paths:
- "src/Saas.Application/**"
- ".github/**"
name: CI/CD - PR - Container Image Build and Webhook - Saas.Application.Web
jobs:
build-image:
name: Build and Publish Image
uses: Azure/azure-saas/.github/workflows/template-container-image-build.yml@main
with:
image_to_push: asdk-web
tag_name: PR_$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
# Add webhook jobs below here for each environment you want to automatically update
webhook-dev:
name: Image Build Webhook - Dev
needs: build-image
if: needs.build-image.result == 'success'
uses: Azure/azure-saas/.github/workflows/template-container-image-webhook.yml@main
secrets:
WEBHOOK_URL: ${{ secrets.ASDK_WEB_DEV_WEBHOOK_URL }}

26
.github/workflows/container-image-build-saas-permissions-pr.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,26 @@
on:
pull_request:
branches:
- main
paths:
- "src/Saas.Identity/Saas.Permissions/**"
- ".github/**"
name: CI/CD - PR - Container Image Build and Webhook - Saas.Permissions.Service
jobs:
build-image:
name: Build and Publish Image
uses: Azure/azure-saas/.github/workflows/template-container-image-build.yml@main
with:
image_to_push: asdk-permissions
tag_name: PR_$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
# Add webhook jobs below here for each environment you want to automatically update
webhook-dev:
name: Image Build Webhook - Dev
needs: build-image
if: needs.build-image.result == 'success'
uses: Azure/azure-saas/.github/workflows/template-container-image-webhook.yml@main
secrets:
WEBHOOK_URL: ${{ secrets.ASDK_PERMISSIONS_DEV_WEBHOOK_URL }}

Просмотреть файл

@ -0,0 +1,26 @@
on:
pull_request:
branches:
- main
paths:
- "src/Saas.SignupAdministration/**"
- ".github/**"
name: CI/CD - PR - Container Image Build and Webhook - Saas.SignupAdministration.Web
jobs:
build-image:
name: Build and Publish Image
uses: Azure/azure-saas/.github/workflows/template-container-image-build.yml@main
with:
image_to_push: asdk-signup
tag_name: PR_$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
# Add webhook jobs below here for each environment you want to automatically update
webhook-dev:
name: Image Build Webhook - Dev
needs: build-image
if: needs.build-image.result == 'success'
uses: Azure/azure-saas/.github/workflows/template-container-image-webhook.yml@main
secrets:
WEBHOOK_URL: ${{ secrets.ASDK_SIGNUP_DEV_WEBHOOK_URL }}