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

add reusable workflow for dev deploy #68

Closed
wants to merge 2 commits into from
Closed

Conversation

elrayle
Copy link
Collaborator

@elrayle elrayle commented Apr 11, 2024

Description

Move dev deploy workflow from service to operations and generalize it for use with all primary apps (i.e. service, crawler, website)

Related Work

Summary of fixes:

Multiple issues were in the original workflow:

  • If the webapp publish profile secret is empty, Azure/webapps-deploy v3 doesn’t deploy but reports the deploy as passing. See Azure/webapps-deploy Issue #404.
  • Configs were set before running the deploy. This means that the config values in Azure are updated even if the deploy fails.

To avoid these known issues, the PR updates the workflow copied from clearlydefined/service to...

  • check that all required secrets are set before proceeding

NOTE: Configs cannot be moved after the deploy because they are used by the restart process kicked of by the deploy.

Follow-on Work

@elrayle elrayle marked this pull request as draft April 11, 2024 16:32
@elrayle elrayle force-pushed the elr/shared-dev-deploy branch from fb0b3f1 to bacaa08 Compare April 11, 2024 19:45
@elrayle elrayle force-pushed the elr/shared-dev-deploy branch from afa194d to f69aaa7 Compare April 11, 2024 19:53
@elrayle elrayle changed the title add reusable workflows for dev deploy add reusable workflow for dev deploy Apr 11, 2024
Configs have to go before deploy because they are used in the restart after the deploy.

QUESTION: If the deploy fails, do the configs automatically get reverted?
Copy link

@jmeridth jmeridth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 especially after us walking through it.

@elrayle
Copy link
Collaborator Author

elrayle commented Apr 15, 2024

This is superseded by the work in:

The new PRs combine the dev and deploy workflows into a single shared workflow in operations.

@elrayle elrayle closed this Apr 15, 2024
@elrayle elrayle deleted the elr/shared-dev-deploy branch April 26, 2024 20:58
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.

2 participants