It is needed for xrayimg project. We have develepment env on the project placed on PC in Krasnoyarsk office -> Hyper-V server -> Virtual machine -> docker compose. Also all future production servers will be created with in same way (VM and docker compose is 100%).
Summary
Task: https://saritasa.atlassian.net/browse/SD-373
Why?
It is needed for xrayimg project. We have develepment env on the project placed on PC in
Krasnoyarsk office -> Hyper-V server -> Virtual machine -> docker compose
. Also all future production servers will be created with in same way (VM and docker compose is 100%).We deploy the new version of backend on the servers with watchtower. It checks AWS ECR for the new uploaded image and update running containers. The easiest way to do it is
:latest
tag. It is here: https://github.com/saritasa-nest/xrayimg-infra-aws/blob/feature/local-server/private/docker-compose.yaml#L12How?
We can add both tags
${env}-${commit_hash}
(i.e.:dev-dsjfh43
) and:latest
on the built image in tekton-pipelines.It isn't default behaviour now. You must enable this by adding below code in triggerBinding:
Exmaples:
Output from buildpacks step:
Some images: How parameter looks: How images look in ECR: