multicloud-ops / build-harness-extensions

1 stars 8 forks source link

(optionally) add CI build info to unique docker tag, to avoid garbage collection on CI rebuilds #29

Open hassenius opened 4 years ago

Fryguy commented 3 years ago

Hit something similar just now - since git describe is used, rebuilding the same commit overwrites the docker tag.

What do you suggest from CI build info to avoid this? (I'm thinking something like a CI build id, for example on Travis you have TRAVIS_BUILD_ID or TRAVIS_JOB_ID) Or would tacking on a timestamp be enough?