Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

docker: include git commit hash in swarm version #1488

Merged
merged 2 commits into from
Jun 14, 2019

Conversation

skylenet
Copy link
Contributor

We need the .git directory during builds so that we can detect the git commit hash that is important to have.

Previously:

$ swarm version
Swarm                                                                        
Version: 0.4.2-unstable                                                               
Go Version: go1.12.5                                                                          
OS: linux   

Now:

$ swarm version
Swarm                                                                                                                            
Version: 0.4.2-unstable                                                                                                          
Git Commit: 8b37def9613e6021a865af0cc4ef42c20a66a1fb                                                                             
Go Version: go1.12.5                                                                                                             
OS: linux    

@skylenet skylenet added this to the 0.4.2 milestone Jun 14, 2019
@skylenet skylenet requested a review from nonsense June 14, 2019 13:03
nonsense
nonsense previously approved these changes Jun 14, 2019
@skylenet skylenet changed the title dockerignore: remove .git - needed for git hash on builds docker: include git commit hash in swarm version Jun 14, 2019
@skylenet skylenet merged commit 21adbe2 into master Jun 14, 2019
@skylenet skylenet deleted the docker-fix-git-commit branch June 18, 2019 08:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants