File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1+ FROM alpine:3.16.0
2+
3+ ADD pulsarctl /usr/local/bin/pulsarctl
4+
5+ RUN apk add tzdata ca-certificates --no-cache \
6+ && chmod +x /usr/local/bin/pulsarctl
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ mkdir $ASSETS_DIR
2828build () {
2929 local arch=${1}
3030 local os=${2}
31+ local docker_tag=${3}
3132 local base_dir=dist
3233 local dirname=pulsarctl-${arch} -${os}
3334 local dir=${base_dir} /${dirname}
@@ -40,6 +41,12 @@ build() {
4041 tar -czf ${dirname} .tar.gz ${dirname}
4142 mv ${dirname} .tar.gz ${ASSETS_DIR}
4243 popd
44+
45+ if [[ " x${docker_tag} " != " x" ]]; then
46+ docker build -f docker/${arch} -${os} .Dockerfile -t streamnative/pulsarctl:${docker_tag} ${dir}
47+ docker login -u=" ${DOCKER_USERNAME} " -p=" ${DOCKER_PASSWORD} "
48+ docker push streamnative/pulsarctl:${docker_tag}
49+ fi
4350}
4451
4552function build_doc() {
@@ -48,7 +55,7 @@ function build_doc() {
4855 mv pulsarctl-site-${version} .tar.gz ${ASSETS_DIR}
4956}
5057
51- build amd64 linux
58+ build amd64 linux ${version}
5259build 386 linux
5360build amd64 darwin
5461build arm64 darwin
You can’t perform that action at this time.
0 commit comments