This prevents image conflicts. When a github commit is put onto AWS, it uses the commit as hash of the image. If nothing has changed, then it will fail because the ECR is immutable and cannot have images overwriting. So we need to change the image tag to be different on every run, in this case, we append the run number. Should be fine.
This prevents image conflicts. When a github commit is put onto AWS, it uses the commit as hash of the image. If nothing has changed, then it will fail because the ECR is immutable and cannot have images overwriting. So we need to change the image tag to be different on every run, in this case, we append the run number. Should be fine.