Skip to content

Commit e555ca9

Browse files
committed
Refactor: Wrap docker compose commands in the deploy workflow to execute as the ubuntu user.
1 parent 3fc33b4 commit e555ca9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
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=[\"cd ~/docmost && sudo IMAGE_TAG=${{ github.event.inputs.version }} docker compose pull && sudo IMAGE_TAG=${{ github.event.inputs.version }} docker compose up -d\"]" \
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\""]' \
9292
--output text \
9393
--query "Command.CommandId")
9494

0 commit comments

Comments
 (0)