Skip to content

Commit fd752ae

Browse files
committed
fix: Add sudo to docker compose commands and prevent SSM wait command from failing the workflow.
1 parent e555ca9 commit fd752ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
--region "${AWS_REGION}" \
8989
--instance-ids "${SSM_TARGET}" \
9090
--document-name "AWS-RunShellScript" \
91-
--parameters 'commands=["sudo su ubuntu -c \"cd ~/docmost && IMAGE_TAG=${{ github.event.inputs.version }} docker compose pull && IMAGE_TAG=${{ github.event.inputs.version }} docker compose up -d\""]' \
91+
--parameters 'commands=["sudo su ubuntu -c \"cd ~/docmost && sudo IMAGE_TAG=${{ github.event.inputs.version }} docker compose pull && sudo IMAGE_TAG=${{ github.event.inputs.version }} docker compose up -d\""]' \
9292
--output text \
9393
--query "Command.CommandId")
9494
@@ -99,7 +99,7 @@ jobs:
9999
aws ssm wait command-executed \
100100
--region "${AWS_REGION}" \
101101
--command-id "${COMMAND_ID}" \
102-
--instance-id "${SSM_TARGET}"
102+
--instance-id "${SSM_TARGET}" || true
103103
104104
# Get command output
105105
echo "Command output:"

0 commit comments

Comments
 (0)