Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[redhat-v2.1.1] rhtap: update Dockerfile to get a clean git hash #79

Conversation

openshift-cherrypick-robot

This is an automated cherry-pick of #78

/assign lance

The cachi2 pipelinerun task in RHTAP modifies the Dockerfile to inject
the cached dependency information into the build. This causes the git
version - which is injected into the CLI version output - to include a
`-dirty` suffix.

The modification in this commit stashes those changes, and then gets the
git hash, storing it in the `GIT_VERSION` environment variable, then
pops those changes back off of the stash and runs the build as before.

The commit also contains some optimizations so that most of the `RUN`
commands are consolidated into one.

Signed-off-by: Lance Ball <[email protected]>
Copy link

openshift-ci bot commented Nov 3, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: openshift-cherrypick-robot
Once this PR has been reviewed and has the lgtm label, please assign lance for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@lance
Copy link
Member

lance commented Nov 3, 2023

/retest

@lance
Copy link
Member

lance commented Nov 3, 2023

Wrong branch

@lance lance closed this Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants