Skip to content

Commit

Permalink
chore:remove EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
codernesty committed Aug 22, 2024
1 parent 5a03cd5 commit e98756c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,9 @@ jobs:
BACKOFF_TIME=5 # Initial backoff time in seconds

while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
JSON_CONFIG=$(cat <<EOF
{
"CodeRepository": {
"RepositoryUrl": "${{ secrets.REPOSITORY_URL }}",
"SourceCodeVersion": {
"Type": "BRANCH",
"Value": "master"
},
"SourceDirectory": "linguaphoto"
}
}
EOF
)
if aws apprunner update-service \
--service-arn "$SERVICE_ARN" \
--source-configuration "$JSON_CONFIG"; then
--source-configuration "{\"CodeRepository\":{\"RepositoryUrl\":\"${{ secrets.REPOSITORY_URL }}\",\"SourceCodeVersion\":{\"Type\":\"BRANCH\",\"Value\":\"master\"},\"SourceDirectory\":\"linguaphoto\"}"; then
echo "Service updated successfully."
exit 0
else
Expand Down

0 comments on commit e98756c

Please sign in to comment.