Deploy
We are using feature branch model across asset generation system and a new image will be build and push to ECR after the PR gets merged. So theoretically each PR should attached to a certain version number / tag. You should get the version number / tag ready before the deployment.
There are 2 way to make the deployment:
- Trigger the deployment by github API call (Recommended):
curl --location --request POST 'https://api.github.com/repos/ArkoseLabs/ag-image-generator/dispatches' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ${github_token}' \
--header 'Content-Type: text/plain' \
--data-raw '{
"event_type": "manual-deploy",
"client_payload": {
"image_tag": ${image_tag_to_deploy}, "deploy_env": "development"
}
}'