-
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.
- Loading branch information
1 parent
9017083
commit bb66ee7
Showing
2 changed files
with
53 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Deploy to develop | ||
|
||
on: | ||
pull_request: | ||
types: [unlabeled] | ||
|
||
jobs: | ||
get-removed-labels: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get the removed label | ||
run: | | ||
# The path to the JSON file with the event payload | ||
EVENT_PAYLOAD_PATH=${{ github.event_path }} | ||
# Extract the label name using jq (a lightweight and flexible command-line JSON processor) | ||
LABEL_NAME=$(jq '.label.name' $EVENT_PAYLOAD_PATH) | ||
# Output the label name | ||
echo "The removed label is: $LABEL_NAME" | ||
return $LABEL_NAME | ||
# Deploy to develop to test server | ||
deploy: | ||
needs: [ get-removed-labels ] | ||
uses: ./.github/workflows/deploy.yaml | ||
if: ${{ needs.get-removed-labels.outputs.result }} == 'deploy:aeolus-test' || ${{ needs.get-removed-labels.outputs.result }} == 'lock:aeolus-test' | ||
with: | ||
docker-tag: "nightly" | ||
branch-name: "develop" | ||
environment-name: aeolus-dev | ||
environment-url: https://aeolus-test.artemis.cit.tum.de | ||
secrets: inherit | ||
|
||
|
||
# Check that the build job has run successfully otherwise add an error label | ||
add-error-label: | ||
needs: [ check-build-status, compute-tag, pre-deployment, deploy ] | ||
runs-on: ubuntu-latest | ||
if: ${{ failure() }} | ||
steps: | ||
- name: Add error label | ||
uses: actions-ecosystem/action-add-labels@v1 | ||
with: | ||
labels: deployment-error |
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