Push docker containers to Artifactory #361
Merged
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.
Reference Ticket #2868
I generated an Access Token that will allow the actions build to push docker containers to the
pate_docker-local
repository on Artifactory. This token has been stored in the Github secrets, that can be accessed from the CI job.
$ARTIFACTORY_USER: This is just the tokens name (pate_ci)
$ARTIFACTORY_KEY: This is the actual access token that was generated
For the tag, Github only has built-in support for the long version of the commit hash. I went ahead and added a step to convert it to the short version, which should make it easier to read and reference. So now, you can pull the pate images from the following:
artifactory.galois.com:5025/pate/pate:$CI_COMMIT_SHORT_SHA
I standardized on the Gitlab naming convention of "$CI_COMMIT_SHORT_SHA" for the SHORT_SHA. If you think that SHORT_SHA will be problematic for any reason, let me know and I can switch it back to the $GITHUB_SHA.
It looks like it successfully finished and the container appears to be here:
https://artifactory.galois.com:443/artifactory/pate_docker-local/pate/pate/496fa37/
Can I have you confirm that everything looks correct to you?