-
Notifications
You must be signed in to change notification settings - Fork 5
70 lines (70 loc) · 2.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
name: Controller build
on:
workflow_dispatch:
env:
IMAGE_NAME: ${{ github.repository }}
jobs:
build-simple-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 simple controller image
run: |
cp docker/controller/Dockerfile .
docker build -t ghcr.io/${{ env.IMAGE_NAME }}/simple-controller:latest --build-arg APP=simple .
- name: Push simple controller image
run: docker push ghcr.io/${{ env.IMAGE_NAME }}/simple-controller:latest
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 .
- name: Push zookeeper controller image
run: docker push ghcr.io/${{ env.IMAGE_NAME }}/zookeeper-controller:latest
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 .
- name: Push rabbitmq controller image
run: docker push ghcr.io/${{ env.IMAGE_NAME }}/rabbitmq-controller:latest
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 .
- name: Push fluent controller image
run: docker push ghcr.io/${{ env.IMAGE_NAME }}/fluent-controller:latest