File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Deploy
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Image tag to deploy (e.g. v0.70.1 or sha-abcdef)'
8+ required : true
9+ default : ' latest'
510
611jobs :
712 deploy :
8388 --region "${AWS_REGION}" \
8489 --instance-ids "${SSM_TARGET}" \
8590 --document-name "AWS-RunShellScript" \
86- --parameters ' commands=["sudo su ubuntu -c \"cd ~/docmost && sudo docker compose pull && sudo docker compose up -d\""]' \
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\"]" \
8792 --output text \
8893 --query "Command.CommandId")
8994
Original file line number Diff line number Diff line change 11services :
22 docmost :
3- image : ghcr.io/chipasia/docmost-source:latest
3+ image : ghcr.io/chipasia/docmost-source:${IMAGE_TAG:- latest}
44 container_name : docmost-app
55 restart : unless-stopped
66 ports :
You can’t perform that action at this time.
0 commit comments