FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
kubesphere/hack/docker_build.sh at master · githubstack/kubesphere · GitHub
githubstack
/
kubesphere
Public
forked from
kubesphere/kubesphere
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
kubesphere
/
hack
/
docker_build.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
32 lines (25 loc) · 1.1 KB
Breadcrumbs
kubesphere
/
hack
/
docker_build.sh
Copy path
File metadata and controls
executable file
·
32 lines (25 loc) · 1.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!
/usr/bin/env bash
set
-ex
set
-o pipefail
REPO=kubespheredev
TAG=latest
#
check if build was triggered by a travis cronjob
if
[[
!
-v TRAVIS_EVENT_TYPE ]]
;
then
echo
"
TRAVIS_EVENT_TYPE is not set, treat as regular build
"
elif
[[
-z
"
$TRAVIS_EVENT_TYPE
"
]]
;
then
echo
"
TRAVIS_EVENT_TYPE is empty, also normaly build
"
elif
[
$TRAVIS_EVENT_TYPE
==
"
cron
"
]
;
then
TAG=dev-
$(
date +%Y%m%d
)
fi
docker build -f build/ks-apigateway/Dockerfile -t
$REPO
/ks-apigateway:
$TAG
.
docker build -f build/ks-apiserver/Dockerfile -t
$REPO
/ks-apiserver:
$TAG
.
docker build -f build/ks-iam/Dockerfile -t
$REPO
/ks-account:
$TAG
.
docker build -f build/ks-controller-manager/Dockerfile -t
$REPO
/ks-controller-manager:
$TAG
.
docker build -f ./pkg/db/Dockerfile -t
$REPO
/ks-devops:flyway-
$TAG
./pkg/db/
#
Push image to dockerhub, need to support multiple push
echo
"
$DOCKER_PASSWORD
"
|
docker login -u
"
$DOCKER_USERNAME
"
--password-stdin
docker push
$REPO
/ks-apigateway:
$TAG
docker push
$REPO
/ks-apiserver:
$TAG
docker push
$REPO
/ks-account:
$TAG
docker push
$REPO
/ks-controller-manager:
$TAG
docker push
$REPO
/ks-devops:flyway-
$TAG
Back
|
FazBrowse Home
|
New Git URL