Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
gbanu committed Feb 13, 2025
1 parent 7a1f5a0 commit f56e1f5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/staging-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
environment_name:
description: 'Environment to deploy to'
required: true
type: choice
options:
- artemis-staging-localci.artemis.cit.tum.de

concurrency: ${{ github.event.inputs.environment_name }}

Expand Down Expand Up @@ -167,7 +170,12 @@ jobs:
# Verify the file was copied successfully
echo "[INFO] Verify new WAR file..."
$SSH "if [ ! -f /opt/artemis/artemis.war.new ]; then echo 'Error: WAR file not found after copy'; exit 1; fi"
$SSH '
if [ ! -f /opt/artemis/artemis.war.new ]; then
echo "Error: No WAR file found at /opt/artemis/artemis.war.new"
exit 1
fi
'
# Stop Artemis-Service on node
echo "[INFO] Stop artemis.service ..."
Expand Down Expand Up @@ -240,4 +248,4 @@ jobs:
# Start Artemis-Service on node
echo "[INFO] Start artemis.service ..."
$SSH "sudo systemctl start artemis"
done
done
12 changes: 10 additions & 2 deletions .github/workflows/testserver-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
environment_name:
description: 'Environment to deploy to'
required: true
type: choice
options:
- artemis-staging-localci.artemis.cit.tum.de

concurrency: ${{ github.event.inputs.environment_name }}

Expand Down Expand Up @@ -167,7 +170,12 @@ jobs:
# Verify the file was copied successfully
echo "[INFO] Verify new WAR file..."
$SSH "if [ ! -f /opt/artemis/artemis.war.new ]; then echo 'Error: WAR file not found after copy'; exit 1; fi"
$SSH '
if [ ! -f /opt/artemis/artemis.war.new ]; then
echo "Error: No WAR file found at /opt/artemis/artemis.war.new"
exit 1
fi
'
# Stop Artemis-Service on node
echo "[INFO] Stop artemis.service ..."
Expand Down Expand Up @@ -240,4 +248,4 @@ jobs:
# Start Artemis-Service on node
echo "[INFO] Start artemis.service ..."
$SSH "sudo systemctl start artemis"
done
done

0 comments on commit f56e1f5

Please sign in to comment.