зеркало из https://github.com/Azure/azure-saas.git
Container Image Publishing On Pull Request
* Create workflow files that trigger container build and publish on pull request actions
This commit is contained in:
Родитель
bf4f16dee0
Коммит
aa7f5e82d5
|
@ -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 }}
|
|
@ -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 }}
|
|
@ -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 }}
|
26
.github/workflows/container-image-build-saas-signupadministration-pr.yml
поставляемый
Normal file
26
.github/workflows/container-image-build-saas-signupadministration-pr.yml
поставляемый
Normal file
|
@ -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 }}
|
Загрузка…
Ссылка в новой задаче