@@ -17,37 +17,40 @@ jobs:
1717 ref="${ref////-}"
1818 echo $ref
1919 echo ::set-output name=tag::$ref
20- - name : Build and push zookeeper-operator image
21- uses : docker/build-push-action@v1
22- with :
23- dockerfile : Dockerfile
24- build_args : VERSION=${{ steps.vars.outputs.tag }},GIT_SHA=${{ github.sha }}
25- username : ${{ secrets.DOCKER_USERNAME }}
26- password : ${{ secrets.DOCKER_PASSWORD }}
27- repository : adobe/zookeeper-operator
28- tag_with_ref : true
29- add_git_labels : true
30- always_pull : true
31- push : ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/zk') }}
3220 - name : Build and push zookeeper Apache image
3321 uses : docker/build-push-action@v1
22+ if : ${{ startsWith(github.ref, 'refs/tags/zk') }}
3423 with :
3524 path : docker/zookeeper-image
3625 username : ${{ secrets.DOCKER_USERNAME }}
3726 password : ${{ secrets.DOCKER_PASSWORD }}
3827 repository : adobe/zookeeper
39- tags : 3.6.3 -apache-${{ steps.vars.outputs.tag }}
28+ tags : 3.7.1 -apache-${{ steps.vars.outputs.tag }}
4029 add_git_labels : true
4130 always_pull : true
4231 push : ${{ startsWith(github.ref, 'refs/tags/zk') }}
4332 - name : Build and push zookeeper image
33+ if : ${{ !startsWith(github.ref, 'refs/tags/zk') }}
4434 uses : docker/build-push-action@v1
4535 with :
4636 path : docker
4737 username : ${{ secrets.DOCKER_USERNAME }}
4838 password : ${{ secrets.DOCKER_PASSWORD }}
4939 repository : adobe/zookeeper
50- tags : 3.6.3-${{ steps.vars.outputs.tag }}
40+ tags : 3.7.1-${{ steps.vars.outputs.tag }}
41+ add_git_labels : true
42+ always_pull : true
43+ push : ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/zk') }}
44+ - name : Build and push zookeeper-operator image
45+ if : ${{ !startsWith(github.ref, 'refs/tags/zk') }}
46+ uses : docker/build-push-action@v1
47+ with :
48+ dockerfile : Dockerfile
49+ build_args : VERSION=${{ steps.vars.outputs.tag }},GIT_SHA=${{ github.sha }}
50+ username : ${{ secrets.DOCKER_USERNAME }}
51+ password : ${{ secrets.DOCKER_PASSWORD }}
52+ repository : adobe/zookeeper-operator
53+ tag_with_ref : true
5154 add_git_labels : true
5255 always_pull : true
5356 push : ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/zk') }}
0 commit comments