File tree Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 11name : build-publish-docker-image
22
3- on :
4- push :
5- tags :
6- - ' *'
3+ on : [push, pull_request]
74
85jobs :
96 build :
129 - uses : actions/checkout@v2
1310 - name : Get tag name
1411 id : vars
15- run : echo ::set-output name=tag::${GITHUB_REF:10}
16- - uses : docker/build-push-action@v1
12+ run : |
13+ ref=${GITHUB_REF:10}
14+ ref="${ref////-}"
15+ echo $ref
16+ echo ::set-output name=tag::$ref
17+ - name : Build and push zookeeper-operator image
18+ uses : docker/build-push-action@v1
1719 with :
1820 dockerfile : Dockerfile
1921 build_args : VERSION=${{ steps.vars.outputs.tag }},GIT_SHA=${{ github.sha }}
2022 username : ${{ secrets.DOCKER_USERNAME }}
2123 password : ${{ secrets.DOCKER_PASSWORD }}
2224 repository : adobe/zookeeper-operator
2325 tag_with_ref : true
26+ add_git_labels : true
27+ always_pull : true
2428 push : ${{ startsWith(github.ref, 'refs/tags/') }}
29+ - name : Build and push zookeeper image
30+ uses : docker/build-push-action@v1
31+ with :
32+ path : docker
33+ username : ${{ secrets.DOCKER_USERNAME }}
34+ password : ${{ secrets.DOCKER_PASSWORD }}
35+ repository : adobe/zookeeper
36+ tags : 3.6.1-${{ steps.vars.outputs.tag }}
2537 add_git_labels : true
38+ always_pull : true
39+ push : ${{ startsWith(github.ref, 'refs/tags/') }}
Original file line number Diff line number Diff line change 88# http://www.apache.org/licenses/LICENSE-2.0
99#
1010
11- FROM openjdk:11-jdk
11+ FROM openjdk:14.0.2-slim
1212RUN mkdir /zu
1313COPY zu /zu
1414WORKDIR /zu
1515RUN ./gradlew --console=verbose --info shadowJar
1616
17- FROM zookeeper:3.6.1
17+ # use forked base zookeeper 3.6.1 docker image
18+ # that runs on openjdk-14.0.2 instead of openjdk-11
19+ FROM amuraru/zookeeper:3.6.1
1820COPY bin /usr/local/bin
1921RUN chmod +x /usr/local/bin/*
2022COPY --from=0 /zu/build/libs/zu.jar /root/
2123
2224RUN apt-get -q update && \
23- apt-get install -y dnsutils curl procps
25+ apt-get install --no-install-recommends -y curl dnsutils procps
You can’t perform that action at this time.
0 commit comments