Jandev / Jandev/guid-api

Have zero-downtime deployments

Open
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Due to the nature of the deployment of an Azure Function and running it from a package there is downtime at the moment.

Deployment of the Bicep file causes the run from package configuration setting to be set to `1`, and not the URL where the package is located. This value is updated to the URL when the actual zip-file is uploaded.

Change this to a two-step deployment, similar to what has been done in the Minifier solution where this is also done in two deployment steps (https://github.com/Jandev/minifier/blob/develop/.github/workflows/release.yml).
First upload the zip file, get the correct URL and then use the URL as an input parameter to the Bicep files and set the correct configuration value.

Contributor guide

Open the contributing guide

Research direction

Start by comparing the current deployment workflow and Bicep files with the two-step pattern in the referenced Minifier release.yml. Trace how the zip URL is produced and passed into the Bicep deployment; done means the package is uploaded before configuration is applied and the Azure Function retains its package URL without deployment downtime.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, github-actions
Domain
cloud, devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.