Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
1b872f8e
Commit
1b872f8e
authored
4 years ago
by
drakos
Browse files
Options
Downloads
Patches
Plain Diff
add-build-script
parent
73409e45
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build.sh
+10
-0
10 additions, 0 deletions
build.sh
with
10 additions
and
0 deletions
build.sh
0 → 100755
+
10
−
0
View file @
1b872f8e
echo
Build started on
`
date
`
export
IMAGE_TAG
=
`
git ls-remote
--heads
origin |
grep
$(
git rev-parse HEAD
)
|
cut
-d
/
-f
3
`
if
[
"
$IMAGE_TAG
"
=
"master"
]
;
then
export
IMAGE_TAG
=
latest
;
fi
export
REPO_PATH
=
`
git rev-parse
--show-toplevel
`
export
REPO_NAME
=
`
basename
$REPO_PATH
`
export
IMAGE_REPO_NAME
=
"hive/
$REPO_NAME
"
export
SOURCE_COMMIT
=
`
git rev-parse HEAD
`
echo
Building branch
$IMAGE_TAG
from
$IMAGE_REPO_NAME
docker build
.
-t
$IMAGE_REPO_NAME
:
$IMAGE_TAG
--build-arg
SOURCE_COMMIT
=
"
${
SOURCE_COMMIT
}
"
--build-arg
DOCKER_TAG
=
"
${
IMAGE_TAG
}
"
This diff is collapsed.
Click to expand it.
Jolly Pirate
@drakos
·
4 years ago
Developer
Build script for docker, same as from jussi repo, with changed steemit to hive.
Build script for docker, same as from jussi repo, with changed steemit to hive.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment