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

ci: introduce stage and preview deployments #46

Merged
merged 43 commits into from
Feb 24, 2023
Merged

Conversation

timonmasberg
Copy link
Member

@timonmasberg timonmasberg commented Feb 11, 2023

This introduces 2 deployment pipelines:

  1. Stage Deployment. Deploys the main branch into an Azure Web App Slot stage and an Azure Static Web App environment stage. This is also marked as a GitHub environment with the frontend URL.
  2. PR Preview Deployments. If an Administrator comments /deploy-previewon a PR, the PR will get deployed to an Azure Web App and Azure Static Web App slot that is identified with the pull request number. If the PR gets closed, the slots will get removed.

Furthermore, Angular now has environments. The stage environment will be used for stage and PR deployments and the prod environment for production deployments (which are currently not implemented).

All workflows have been tested on a 1:1 fork. Our Azure Resources have been adjusted respecting #50 and service credentials have been created.

@timonmasberg timonmasberg marked this pull request as ready for review February 11, 2023 01:21
@timonmasberg timonmasberg marked this pull request as draft February 11, 2023 01:22
@timonmasberg timonmasberg marked this pull request as ready for review February 11, 2023 17:48
@timonmasberg timonmasberg self-assigned this Feb 11, 2023
@timonmasberg timonmasberg changed the title Introduce stage and preview deployments ci: introduce stage and preview deployments Feb 12, 2023
@sonarcloud
Copy link

sonarcloud bot commented Feb 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

.github/actions/build-and-deploy-api/action.yml Outdated Show resolved Hide resolved
.github/actions/build-and-deploy-api/action.yml Outdated Show resolved Hide resolved
@timonmasberg timonmasberg merged commit 5c3af8a into main Feb 24, 2023
@timonmasberg timonmasberg deleted the feat/deployments branch February 24, 2023 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants