feat: add dynamic image tags based on service #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR aims to add a feature to set Open edX images tags dinamically based on service. It also helps to standarize the way tags are built for different organizations.
The variable needed to enable this feature should be defined at the strain config file as:
DOCKER_REGISTRY
docker.io
REPO_BASE
tutor-openedx/{service}-tutor
TUTOR_VERSION
TIMESTAMP
How to test
Optional
The default value for REPO_BASE is also built dinamically if not provided.
If the default does not work for your case just define a custom repository path:
Other considerations
There is also a possiblity to just ask for dispatch to pass a complete BASE_TAG that includes all the path but the timestamp. e.g:
The one that I am proposing consider reusing variables that the workflow already uses.