1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/mirrors-presidio

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
build_release.md 3.4 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
Nava Vaisman Levy Отправлено 24.02.2021 13:34 11f5b99

Build and release process

Presidio leverages Azure DevOps YAML pipelines to validate, build, release and deliver presidio. The pipelines make use of templates for code reuse using YAML Schema.

Description

The following pipelines are provided and maintained as part of presidio development process:

  • PR Validation - used to validate pull requests.
    • Linting
    • Security and compliance analysis
    • Unit tests
    • E2E tests
  • CI - triggered on merge to main branch.
    • Linting
    • Security and compliance analysis
    • Unit tests
    • E2E tests
    • deploys the artifacts to an internal dev environment.
  • Release - manually triggered.
    • releases presidio official artifacts
      • pypi
      • Microsoft container registry (and docker hub)
      • GitHub
    • updates the official demo environment.

Variables used by the pipelines

CI Pipeline

  • ACR_AZURE_SUBSCRIPTION - Service connection to Azure subscription where Azure Container Registry is.
  • ACR_REGISTRY_NAME - Name of Azure Container Registry.
  • ANALYZER_DEV_APP_NAME - Name of existing App Service for Analyzer (development environment).
  • ANONYMIZER_DEV_APP_NAME - Name of existing App Service for Anonymizer (development environment).
  • IMAGE_REDACTOR_DEV_APP_NAME - Name of existing App Service for Image Redactor (development environment).
  • DEV_AZURE_SUBSCRIPTION - Service connection to Azure subscription where App Services are (development environment).
  • DEV_RESOURCE_GROUP_NAME - Name of resource group where App Services are (development environment).

Release Pipeline

  • ACR_AZURE_SUBSCRIPTION - Service connection to Azure subscription where Azure Container Registry is.
  • ACR_REGISTRY_NAME - Name of Azure Container Registry.
  • ANALYZER_PROD_APP_NAME - Name of existing App Service for Analyzer (production environment).
  • ANONYMIZER_PROD_APP_NAME - Name of existing App Service for Anonymizer (production environment).
  • PROD_AZURE_SUBSCRIPTION - Service connection to Azure subscription where App Services are (production environment).
  • PROD_RESOURCE_GROUP_NAME - Name of resource group where App Services are (production environment).

Import a pipeline to Azure Devops

  • Sign in to your Azure DevOps organization and navigate to your project.
  • In your project, navigate to the Pipelines page. Then choose the action to create a new pipeline.
  • Walk through the steps of the wizard by first selecting 'Use the classic editor, and select GitHub as the location of your source code.
  • You might be redirected to GitHub to sign in. If so, enter your GitHub credentials.
  • When the list of repositories appears, select presidio repository.
  • Point Azure Pipelines to the relevant yaml definition you'd like to import. Set the pipeline's name, the required triggers and variables and Select Save and run.
  • A new run is started. Wait for the run to finish.

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/mirrors-presidio.git
git@api.gitlife.ru:oschina-mirror/mirrors-presidio.git
oschina-mirror
mirrors-presidio
mirrors-presidio
main