Skip to content

Controller build

Controller build #19

name: Controller build
on:
workflow_dispatch:
env:
IMAGE_NAME: ${{ github.repository }}
jobs:
build-zookeeper-controller:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into registry ghcr.io
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
- name: Build zookeeper controller image
run: |
cp docker/controller/Dockerfile .
docker build -t ghcr.io/${{ env.IMAGE_NAME }}/zookeeper-controller:latest --build-arg APP=zookeeper .
docker tag ghcr.io/${{ env.IMAGE_NAME }}/zookeeper-controller:latest ghcr.io/${{ env.IMAGE_NAME }}/zookeeper-controller:${{ github.sha }}
- name: Push zookeeper controller image
run: |
docker push ghcr.io/${{ env.IMAGE_NAME }}/zookeeper-controller:latest
docker push ghcr.io/${{ env.IMAGE_NAME }}/zookeeper-controller:${{ github.sha }}
build-rabbitmq-controller:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into registry ghcr.io
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
- name: Build rabbitmq controller image
run: |
cp docker/controller/Dockerfile .
docker build -t ghcr.io/${{ env.IMAGE_NAME }}/rabbitmq-controller:latest --build-arg APP=rabbitmq .
docker tag ghcr.io/${{ env.IMAGE_NAME }}/rabbitmq-controller:latest ghcr.io/${{ env.IMAGE_NAME }}/rabbitmq-controller:${{ github.sha }}
- name: Push rabbitmq controller image
run: |
docker push ghcr.io/${{ env.IMAGE_NAME }}/rabbitmq-controller:latest
docker push ghcr.io/${{ env.IMAGE_NAME }}/rabbitmq-controller:${{ github.sha }}
build-fluent-controller:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into registry ghcr.io
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
- name: Build fluent controller image
run: |
cp docker/controller/Dockerfile .
docker build -t ghcr.io/${{ env.IMAGE_NAME }}/fluent-controller:latest --build-arg APP=fluent .
docker tag ghcr.io/${{ env.IMAGE_NAME }}/fluent-controller:latest ghcr.io/${{ env.IMAGE_NAME }}/fluent-controller:${{ github.sha }}
- name: Push fluent controller image
run: |
docker push ghcr.io/${{ env.IMAGE_NAME }}/fluent-controller:latest
docker push ghcr.io/${{ env.IMAGE_NAME }}/fluent-controller:${{ github.sha }}
build-vreplicaset-controller:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into registry ghcr.io
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
- name: Build vreplicaset controller image
run: |
cp docker/controller/Dockerfile .
docker build -t ghcr.io/${{ env.IMAGE_NAME }}/vreplicaset-controller:latest --build-arg APP=vreplicaset .
docker tag ghcr.io/${{ env.IMAGE_NAME }}/vreplicaset-controller:latest ghcr.io/${{ env.IMAGE_NAME }}/vreplicaset-controller:${{ github.sha }}
- name: Push vreplicaset controller image
run: |
docker push ghcr.io/${{ env.IMAGE_NAME }}/vreplicaset-controller:latest
docker push ghcr.io/${{ env.IMAGE_NAME }}/vreplicaset-controller:${{ github.sha }}
build-producer-controller:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into registry ghcr.io
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
- name: Build producer controller image
run: |
cp docker/controller/Dockerfile .
docker build -t ghcr.io/${{ env.IMAGE_NAME }}/producer-controller:latest --build-arg APP=producer .
docker tag ghcr.io/${{ env.IMAGE_NAME }}/producer-controller:latest ghcr.io/${{ env.IMAGE_NAME }}/producer-controller:${{ github.sha }}
- name: Push producer controller image
run: |
docker push ghcr.io/${{ env.IMAGE_NAME }}/producer-controller:latest
docker push ghcr.io/${{ env.IMAGE_NAME }}/producer-controller:${{ github.sha }}
build-consumer-controller:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log into registry ghcr.io
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
- name: Build consumer controller image
run: |
cp docker/controller/Dockerfile .
docker build -t ghcr.io/${{ env.IMAGE_NAME }}/consumer-controller:latest --build-arg APP=consumer .
docker tag ghcr.io/${{ env.IMAGE_NAME }}/consumer-controller:latest ghcr.io/${{ env.IMAGE_NAME }}/consumer-controller:${{ github.sha }}
- name: Push consumer controller image
run: |
docker push ghcr.io/${{ env.IMAGE_NAME }}/consumer-controller:latest
docker push ghcr.io/${{ env.IMAGE_NAME }}/consumer-controller:${{ github.sha }}