Skip to content

Commit bdc1b1c

Browse files
committed
fix(*): remove the github shagst
1 parent 3835163 commit bdc1b1c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/cd-staging-ec2.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,12 @@ jobs:
2929
id: ssm
3030
env:
3131
INSTANCE_ID: ${{ vars.STAGING_EC2_INSTANCE_ID }}
32-
GIT_SHA: ${{ github.sha }}
3332
run: |
3433
CMD_ID=$(aws ssm send-command \
3534
--instance-ids "$INSTANCE_ID" \
3635
--document-name "AWS-RunShellScript" \
37-
--comment "Deploy kaapi-backend @ ${GIT_SHA::7}" \
38-
--parameters commands='["set -eux","sudo -iu ubuntu bash -lc \"cd /data/kaapi-backend && git fetch --all && git pull origin main && docker compose --profile prestart up prestart --build --abort-on-container-exit && docker compose up -d --build --remove-orphans && docker image prune -f\""]' \
36+
--comment "Deploy kaapi-backend kaapi-staging" \
37+
--parameters commands='["set -eux","sudo -iu ubuntu bash -lc \"cd /data/kaapi-backend && git fetch --all && git pull origin main && docker compose build && docker compose run --rm backend uv run alembic upgrade head && docker compose up -d --remove-orphans && docker image prune -f\""]' \
3938
--cloud-watch-output-config CloudWatchOutputEnabled=true \
4039
--query "Command.CommandId" --output text)
4140
echo "cmd_id=$CMD_ID" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)