/system

Primary LanguageTypeScript

system


Docker deployment

aws ecr get-login-password --region eu-central-1 | docker login --username AWS --password-stdin 085009017826.dkr.ecr.eu-central-1.amazonaws.com

$newVersion = 6; $previousVersion = $newVersion - 1; $serviceName = 'system'; $name = "085009017826.dkr.ecr.eu-central-1.amazonaws.com/${serviceName}"; npm run build; docker build -t "${name}:v1.0.${newVersion}" .; docker push "${name}:v1.0.${newVersion}"; docker rmi "${name}:v1.0.${previousVersion}"; aws ecr batch-delete-image --repository-name $serviceName --image-ids "imageTag=v1.0.${previousVersion}"

aws ecs update-service --cluster hivedive --service system-service --force-new-deployment