mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-06 00:25:55 +00:00
same
This commit is contained in:
parent
86c45fba1c
commit
93a5cab3fc
1 changed files with 9 additions and 1 deletions
|
|
@ -133,7 +133,15 @@ build container fb:
|
|||
services:
|
||||
- docker:dind
|
||||
script:
|
||||
- docker build --build-arg GO_VERSION=$(GO_VERSION) --tag featurebase:test .
|
||||
- |
|
||||
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
|
||||
tag=""
|
||||
echo "Running on default branch '$CI_DEFAULT_BRANCH': tag = 'latest'"
|
||||
else
|
||||
tag=":$CI_COMMIT_REF_SLUG"
|
||||
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
|
||||
fi
|
||||
- docker build --build-arg GO_VERSION=$GO_VERSION -t "$CI_REGISTRY_IMAGE${tag}" .
|
||||
- docker push "$CI_REGISTRY_IMAGE${tag}"
|
||||
- echo 'Created docker image featurebase:test'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue