mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 21:35:50 +00:00
shore: test the pipelines to see if they work
This commit is contained in:
parent
a0e923ec35
commit
04e9c9caa7
1 changed files with 12 additions and 12 deletions
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
|
@ -130,18 +130,18 @@
|
|||
aws ecs create-cluster --cluster-name $CLUSTER_NAME
|
||||
echo "DEPLOYMENT_NEEDED=false" >> $GITHUB_ENV
|
||||
else
|
||||
|
||||
# Check if service exists
|
||||
if ! aws ecs list-services --cluster $CLUSTER_NAME | grep -q $SERVICE_NAME; then
|
||||
echo "Service $SERVICE_NAME doesn't exist in cluster $CLUSTER_NAME, creating it..."
|
||||
# Here you would add code to create the service
|
||||
# This would require task definition setup as well
|
||||
|
||||
echo "For now, skipping deployment as service doesn't exist yet"
|
||||
echo "DEPLOYMENT_NEEDED=false" >> $GITHUB_ENV
|
||||
else
|
||||
echo "Service exists, proceeding with deployment"
|
||||
echo "DEPLOYMENT_NEEDED=true" >> $GITHUB_ENV
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
- name: Deploy to ECS
|
||||
if: env.DEPLOYMENT_NEEDED == 'true'
|
||||
|
|
Loading…
Reference in a new issue