forked from johnfonner/abaco-cli
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or requesttest pleaseNeed help validating a feature or fixNeed help validating a feature or fix
Milestone
Description
A workflow that grew out of some user's CICD workflows is to tell abaco deploy to override the value specified by DOCKER_IMAGE_VERSION in the reactor.rc file with the current Git repo short hash.
This is achieved by detecting the hash and passing it to the -t option, but this requires a separate, out-of-band step to detect the hash.
Extend the abaco deploy workflow to support this automatically:
- Add
DOCKER_USE_COMMIT_HASHas areactor.rcvariable - Add detection of current git commit hash to
abaco deploy - Update behavior of
-tso the image tag is set in the following order whenDOCKER_USE_COMMIT_HASH=1
Argument -t [value] > [git commit hash] > latest if git | DOCKER_IMAGE_VERSION if ! git
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesttest pleaseNeed help validating a feature or fixNeed help validating a feature or fix