Skip to content

Commit f385051

Browse files
committed
INTERNAL - Publish docker images to adobe dockerhub repos
1 parent 3aa7b9a commit f385051

File tree

3 files changed

+50
-91
lines changed

3 files changed

+50
-91
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: build-publish-docker-image
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Get tag name
11+
id: vars
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
19+
with:
20+
dockerfile: Dockerfile
21+
build_args: VERSION=${{ steps.vars.outputs.tag }},GIT_SHA=${{ github.sha }}
22+
username: ${{ secrets.DOCKER_USERNAME }}
23+
password: ${{ secrets.DOCKER_PASSWORD }}
24+
repository: adobe/zookeeper-operator
25+
tag_with_ref: true
26+
add_git_labels: true
27+
always_pull: true
28+
push: ${{ startsWith(github.ref, 'refs/tags/') }}
29+
- name: Build and push zookeeper Apache image
30+
uses: docker/build-push-action@v1
31+
with:
32+
path: docker/zookeeper-image
33+
username: ${{ secrets.DOCKER_USERNAME }}
34+
password: ${{ secrets.DOCKER_PASSWORD }}
35+
repository: adobe/zookeeper
36+
tags: 3.6.2-apache-${{ steps.vars.outputs.tag }}
37+
add_git_labels: true
38+
always_pull: true
39+
push: ${{ startsWith(github.ref, 'refs/tags/zk') }}
40+
- name: Build and push zookeeper image
41+
uses: docker/build-push-action@v1
42+
with:
43+
path: docker
44+
username: ${{ secrets.DOCKER_USERNAME }}
45+
password: ${{ secrets.DOCKER_PASSWORD }}
46+
repository: adobe/zookeeper
47+
tags: 3.6.2-${{ steps.vars.outputs.tag }}
48+
add_git_labels: true
49+
always_pull: true
50+
push: ${{ startsWith(github.ref, 'refs/tags/') }}

.github/workflows/ci.yaml

Lines changed: 0 additions & 72 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ env:
99
- KUBERNETES_CONFIG_FILE=$HOME/.kube/config
1010
- CHANGE_MINIKUBE_NONE_USER=true
1111
- MINIKUBE_VERSION=v1.11.0
12-
secure: dIXvb2BS2AwvQf+McXNClqoV4AjobYyc0/2b+zn4yMQ2v8gAW5V0w8Y3af6EnwOLe9Szke0RRHj/5ktxyrnQtBLsQhZd13GUItLuvIyD1fZZx9/djA7aII71fqKBVLVg2OR9VFltfPDB1B9NSPD3w4NJhyWdAzUORnqiNkQmOc+WGdCVYJ6olXZoq1rCVD+ysxssuWaHVD4ujbdLmwToFhQiGGbpdInZjdLUZ8FWLEJHl5uHkntrHESDBBjZ+ZHeF5jZYEUKjoV0xvapiI+lqp6mcWzaVkop78SbjlHnbQNjqH3mW6i0lI7dRyMPPURUBPNKvhvDlAbRjd7CU70ASJmI2rCgKQru5tfASaegeCzdGCp1fOn4bdvDgL+9NtxsojL6J4j5H9MPmSE6zZVLLQN/wA4IM7vB12o+O7pEM40WiZ7qtCsolIFWE53zx9Beuf7FQFv8Zz/pCfUctvZdyE53T41uuzZVQC+w+w5sj/1rrLgBCjPD1ghNZdN+y3GD7Sgaic03a+FiCTKnOOab9Dk6Pil0m4qbYLJdkKKLt/PvAw7nb9GEX36VPLWrG9xCXsJvzbiG+JQBYEpSQrzJYj9vuNScoWZuvu1I+cRIZsj26dPt9XXn2I/8uQSKBQlNzPAIOD1NCTLtRglVkgPf+BxNppTLV2BmBRQ4V9ZtpJQ=
1312
services:
1413
- docker
1514
install:
@@ -38,21 +37,3 @@ script:
3837
- make clean
3938
after_success:
4039
- bash <(curl -s https://codecov.io/bash)
41-
deploy:
42-
- provider: script
43-
skip_cleanup: true
44-
script: make push
45-
on:
46-
branch: master
47-
tags: true
48-
- provider: releases
49-
file:
50-
- bin/zookeeper-exporter-linux-amd64
51-
- bin/zookeeper-exporter-darwin-amd64
52-
- bin/zookeeper-exporter-windows-amd64.exe
53-
skip_cleanup: true
54-
on:
55-
branch: master
56-
tags: true
57-
api-key:
58-
secure: OCxUUA41MZ3PUAOjLwhup5o3pbved8uX8O3HRqfKnuKw+a++GuPXgdoFzzAdTfBSnemkDFvZ5SWYwp/08YfK1tKSI23PCyl65I8hORNFp5+MMkGcqZ8bCVk0Y59/lmhPS3hUPQM5F9WnuL8bys37c1h4zzAb4Y9FNHF63KzCedoD6QO0/zhghhxc51b4u8rHMC24SztAFlCJsBkdrda1XJpIB3hKh4ZsDBaRcTYbbQyh6g3vNRdjtmWOcsuxHz2O8tN1SSQAqwqfnPy6bpENGY/tUQc6qzDAAix2ls5yd4DC8ALBEH//lsGaf1cw9hot8CNl8TOKFvu03Y3p34EOLCWwYrvXX8p76c9JiyGtON8tc49+orQhdtaLOfSQiVhIO7wvQQDRkFetvuMCSSDLxAXSn8PCXYp0OXl3mlgB2xkrPr9TSbV2RfTbk+oZY6uBmFOrACp9a37/0JcuAItpEvzCb/jxdBMtEdNatlCbsvmbe/MYwNAW3RnI31wBY4EkYu4+r4Jm8MbHXNVGLTcJIiyZHmMEBh6SYR4gwiAEPYau2jhqpg27j0204V+gCyjoS+X1nNpU2tVpG8TPL14LJaVYI/eowYUkf0Yp6u5cOnV14iTyLHKRVoy2nzErxRLtmx4808F5r/N4noFfdNdnfhEJGNJD8oRtACjBVtBV/FU=

0 commit comments

Comments
 (0)