-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added `hooks/build` script to provide APP_VERSION
- Loading branch information
1 parent
f4e07e6
commit 4ed93f2
Showing
3 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
bin | ||
data | ||
docs | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# Enable BuildKit | ||
export DOCKER_BUILDKIT=1 | ||
|
||
# Extract the Git tag from the SOURCE_COMMIT | ||
APP_VERSION=$(git describe --tags "${SOURCE_COMMIT}") | ||
|
||
# Pass the Git tag as a build argument | ||
docker build --build-arg APP_VERSION="${APP_VERSION}" -t "${IMAGE_NAME}" . |