Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#172123296] pipeline support to deploy using staging slot #59

Merged
merged 3 commits into from
Apr 2, 2020

Conversation

raicastino
Copy link
Contributor

The following changes have been implemented in the Azure DevOps pipeline to address zero downtime & fast rollback in production:

  • added support for selecting one of the following deployment methods in production environment:

    • 'deployToStagingSlot': deploy to 'staging' slot
    • 'deployToProductionSlot' (current default): deploy to 'production' slot (preconfigured slot)
    • 'deployToStagingSlotAndSwap': deploy to 'staging' slot and then swap 'staging' with 'production'

    Note 1. The default value is now set to deployToProductionSlot to allow developers to continuously deploy in the current infrastructure (without slots). We can change the default to deployToStagingSlot when the 'staging' slot with 'auto swap' on will be available.

    Note 2. The deployment to a slot (e.g. 'staging') could automatically trigger the swapping with 'production' slot if "auto swap" will be enabled in the App service configuration. This also means that if the "auto swap" is on and you select 'deployToStagingSlotAndSwap' to swap 'staging' and 'production' slots after deploying to 'staging', the swap task in this pipeline will fail because conflicting with another (automatic) swap operation in progress.

  • [not used] added for experimental purpose only the support for the following deployment methods in test environment (now not available):

    • 'deployToTestSlot' (default): deploy to 'test' slot (it could be a third slot of the same services used in production)
    • 'deployToProductionSlot': deploy to 'production' slot (it could be used in case the TEST environment would be based on separate and dedicated services)

    Note 3. Today we still do not have a test environment and for this reason the deployment in the test environment is currently disabled by default. The definition of this environment, useful for executing integration tests, is a work in progress but the idea is to have a separate and dedicated slot ('slot').

  • improved our Azure pipeline with the new Runtime Parameters to make it easier and faster to set some configuration settings that can be passed when manually running the pipeline; e.g. now you can select the deployment environment and mode directly in the main "Run pipeline" panel of the Azure DevOps portal (the previous pipeline took you three clicks to modify a single value for every single variable and for every run):

    Screenshot 2020-04-02 at 17 02 21

@pagopa-github-bot
Copy link
Contributor

Affected stories

  • ⚙️ #172123296: Come DEV vorrei poter usare una Azure DevOps pipeline per il deployment tramite slot che preveda zero downtime & fast rollback

Generated by 🚫 dangerJS

@gunzip gunzip merged commit cff0a58 into master Apr 2, 2020
@gunzip gunzip deleted the 172123296-pipeline-deployToStagingSlot branch April 2, 2020 22:20
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants