-
Notifications
You must be signed in to change notification settings - Fork 5
82 lines (82 loc) · 3.77 KB
/
controller-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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 }}