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

Include the git commit hash in Docker images #5112

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

andiflabs
Copy link
Contributor

Summary

Send to the Docker build daemon the necessary files from the .git directory so that the build scripts can extract the hash of the HEAD commit.

Also fixed a style warning while at it.

Testing Plan

  1. Run ironfish-cli/scripts/build-docker.sh before this change
  2. Observe that docker run --rm ironfish:latest status reports git src
  3. Run ironfish-cli/scripts/build-docker.sh after this change
  4. Observe that docker run --rm ironfish:latest status reports something like git 2c1b2737

Documentation

N/A

Breaking Change

N/A

andiflabs added 2 commits July 8, 2024 09:51
```
WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
```
Send to the Docker build daemon the necessary files from the `.git`
directory so that the build scripts can extract the hash of the HEAD
commit.
@andiflabs andiflabs requested a review from a team as a code owner July 8, 2024 16:55
@andiflabs andiflabs merged commit 2c1b273 into staging Jul 8, 2024
10 checks passed
@andiflabs andiflabs deleted the andrea/docker-insert-git-hash branch July 8, 2024 17:51
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