Upgrade to zookeeper 3.8.3 #193
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-publish-docker-image | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go 1.17 | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17 | |
id: go | |
- name: Set up Go for root | |
run: | | |
sudo ln -sf `which go` `sudo which go` || true | |
sudo go version | |
- uses: actions/checkout@v2 | |
- name: get go version | |
run: go version | |
- name: Gofmt and License checks | |
run: make check | |
- name: unit tests | |
run: make test | |
- name: Get tag name | |
id: vars | |
run: | | |
ref=${GITHUB_REF:10} | |
ref="${ref////-}" | |
echo $ref | |
echo ::set-output name=tag::$ref | |
- name: Build and push zookeeper Apache image | |
uses: docker/build-push-action@v1 | |
if: ${{ startsWith(github.ref, 'refs/tags/zk') }} | |
with: | |
path: docker/zookeeper-image | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: adobe/zookeeper | |
tags: 3.7.1-apache-${{ steps.vars.outputs.tag }} | |
add_git_labels: true | |
always_pull: true | |
push: ${{ startsWith(github.ref, 'refs/tags/zk') }} | |
- name: Build and push zookeeper image | |
if: ${{ !startsWith(github.ref, 'refs/tags/zk') }} | |
uses: docker/build-push-action@v1 | |
with: | |
path: docker | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: adobe/zookeeper | |
tags: 3.7.1-${{ steps.vars.outputs.tag }} | |
add_git_labels: true | |
always_pull: true | |
push: ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/zk') }} | |
- name: Build and push zookeeper-operator image | |
if: ${{ !startsWith(github.ref, 'refs/tags/zk') }} | |
uses: docker/build-push-action@v1 | |
with: | |
dockerfile: Dockerfile | |
build_args: VERSION=${{ steps.vars.outputs.tag }},GIT_SHA=${{ github.sha }} | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: adobe/zookeeper-operator | |
tag_with_ref: true | |
add_git_labels: true | |
always_pull: true | |
push: ${{ startsWith(github.ref, 'refs/tags/') && !startsWith(github.ref, 'refs/tags/zk') }} |