Skip to content

Commit

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

while [ $RETRY_COUNT -lt $MAX_RETRIES ]; do
if aws apprunner update-service \
--service-arn "$SERVICE_ARN" \
--source-configuration "$(cat << EOF
JSON_CONFIG=$(cat <<EOF
{
"CodeRepository": {
"RepositoryUrl": "${{ secrets.REPOSITORY_URL }}",
Expand All @@ -55,7 +53,10 @@ jobs:
}
}
EOF
)"; then
)
if aws apprunner update-service \
--service-arn "$SERVICE_ARN" \
--source-configuration "$JSON_CONFIG"; then
echo "Service updated successfully."
exit 0
else
Expand Down Expand Up @@ -133,4 +134,4 @@ jobs:
with:
path:
frontend/node_modules/
key: deploy-${{ github.sha }}-${{ hashFiles('frontend/package-lock.json') }}-${{ hashFiles('linguaphoto/requirements.txt') }}
key: deploy-${{ github.sha }}-${{ hashFiles('frontend/package-lock.json') }}-${{ hashFiles('linguaphoto/requirements.txt') }}

0 comments on commit 5a03cd5

Please sign in to comment.