-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Workflow & Docs Updates (#332)
- Loading branch information
1 parent
d3fef31
commit 5cbea40
Showing
21 changed files
with
160 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Check pull request source branch | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
jobs: | ||
check-branches: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check branches | ||
run: | | ||
if [ ${{ github.head_ref }} != "staging" ] && [ ${{ github.base_ref }} == "main" ]; then | ||
echo "::error::Merge requests to main branch are only allowed from staging branch." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Flyway Validation | |
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
branches: [staging] | ||
workflow_call: {} | ||
|
||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
================= | ||
Helios User Guide | ||
================= | ||
|
||
Overview | ||
-------- | ||
Helios is a deployment management tool that simplifies the process of deploying pull requests and branches to test environments. This guide walks you through the basic deployment workflow. | ||
|
||
Prerequisites | ||
-------------- | ||
- GitHub account with access to the repository | ||
- Proper permissions to deploy | ||
- Available test environment | ||
|
||
Deployment Workflow | ||
-------------------- | ||
|
||
|
||
1. Repository Selection | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Select the repository you want to deploy from the main dashboard. | ||
|
||
.. figure:: ../../images/user_guide/1-select-repo.png | ||
:height: 512px | ||
:alt: Repository selection screen | ||
|
||
|
||
2. Authentication | ||
~~~~~~~~~~~~~~~~~~ | ||
Log in with your GitHub credentials. | ||
|
||
.. figure:: ../../images/user_guide/2-login.png | ||
:height: 512px | ||
:alt: Login with GitHub | ||
|
||
|
||
.. figure:: ../../images/user_guide/3-login-gh.png | ||
:height: 512px | ||
:alt: GitHub authentication | ||
|
||
|
||
3. Pull Request Selection | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Choose the pull request or branch you want to deploy. | ||
|
||
.. figure:: ../../images/user_guide/4-open-pr.png | ||
:height: 512px | ||
:alt: Pull request details screen | ||
|
||
|
||
4. Deployment Initiation | ||
~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
Click the deploy button to start the deployment process. | ||
|
||
.. figure:: ../../images/user_guide/5-deploy.png | ||
:height: 512px | ||
:alt: Deploy button and options | ||
|
||
|
||
|
||
The deployment enters a pending state while resources are being allocated. | ||
|
||
.. figure:: ../../images/user_guide/6-deployment-pending.png | ||
:height: 512px | ||
:alt: Deployment pending status | ||
|
||
|
||
The deployment moves to the in-progress state during active deployment. | ||
|
||
.. figure:: ../../images/user_guide/7-deployment-in-progress.png | ||
:height: 512px | ||
:alt: Deployment progress status | ||
|
||
5. Unlock the test environment once you finish testing. | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. figure:: ../../images/user_guide/8-unlock.png | ||
:height: 512px | ||
:alt: Unlock test environment | ||
|
||
|
||
Troubleshooting | ||
---------------- | ||
|
||
Manual Deployment Fallback | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
⚠️ **Warning**: Manual workflow deployment should be used only as a last resort as it may conflict with Helios environment locking. | ||
|
||
If Helios deployment fails, you can use the GitHub workflow as a fallback: | ||
|
||
Access the workflow at: | ||
https://github.com/ls1intum/Artemis/actions/workflows/testserver-deployment.yml | ||
|
||
.. figure:: ../../images/user_guide/github-deployment.png | ||
:height: 512px | ||
:alt: GitHub deployment workflow | ||
|
||
Required Inputs | ||
***************** | ||
- **Use workflow from**: Select your target branch | ||
- **Which branch to deploy**: Again, select your target branch | ||
- **Which environment to deploy**: Use format ``artemis-test7.artemis.cit.tum.de`` | ||
- **Username** (optional): Your GitHub username | ||
|
||
|
||
Support | ||
------- | ||
For assistance: | ||
|
||
- Join the Helios Support Slack channel https://ls1tum.slack.com/archives/C08BPLNT8FL | ||
- Report a new issue if you encounter a bug or need help https://github.com/ls1intum/Helios/issues/new/choose |