Skip to content

Commit 44825ee

Browse files
authored
Merge pull request #111 from Team-Senifit/release-1.0.1
FIx CICD issue
2 parents 534e9a7 + 2b4e795 commit 44825ee

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,14 @@ jobs:
5757
IMAGE_NAME: ${{ env.IMAGE_NAME }}
5858
run: |
5959
set -euo pipefail
60+
PARAMS=$(jq -nc --arg tag "$IMAGE_TAG" \
61+
'{commands:["cd /srv","export IMAGE_TAG="+$tag,"docker compose down","docker compose pull","docker compose up -d"]}')
62+
6063
COMMAND_ID=$(aws ssm send-command \
6164
--instance-ids "$SSM_INSTANCE_ID" \
6265
--document-name "AWS-RunShellScript" \
6366
--comment "Deploy web image $IMAGE_NAME:$IMAGE_TAG" \
64-
--parameters 'commands=["cd /srv","export IMAGE_TAG='\"$IMAGE_TAG\"'","docker compose down","docker compose pull","docker compose up -d"]' \
67+
--parameters "$PARAMS" \
6568
--query "Command.CommandId" \
6669
--output text)
6770

0 commit comments

Comments
 (0)