Skip to content

Commit e00e83d

Browse files
committed
update workflow
1 parent 4feb79a commit e00e83d

File tree

4 files changed

+45
-2
lines changed

4 files changed

+45
-2
lines changed

.github/workflows/docker-build-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131
fi
3232
3333
- name: Build Docker Image
34-
run: make build
34+
run: docker build . -t fleet-telemetry-consumer:${{ env.image_tag }}
3535

3636
- name: Tag Docker Image (only if pushing)
3737
if: startsWith(github.ref, 'refs/tags/')
38-
run: docker tag fleet-telemetry-consumer quay.io/rajsinghcpre/fleet-telemetry-consumer:${{ env.image_tag }}
38+
run: docker tag fleet-telemetry-consumer:${{ env.image_tag }} quay.io/rajsinghcpre/fleet-telemetry-consumer:${{ env.image_tag }}
3939

4040
- name: Push Docker Image (only if pushing)
4141
if: startsWith(github.ref, 'refs/tags/')

kustomization/consumer_config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"bootstrap.servers": "10.0.100.12:31769",
3+
"group.id": "fleet-telemetry-consumer-group",
4+
"auto.offset.reset": "earliest"
5+
}

kustomization/deployment.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: fleet-telemetry-consumer
5+
labels:
6+
app: fleet-telemetry-consumer
7+
spec:
8+
replicas: 1
9+
selector:
10+
matchLabels:
11+
app: fleet-telemetry-consumer
12+
template:
13+
metadata:
14+
labels:
15+
app: fleet-telemetry-consumer
16+
spec:
17+
containers:
18+
- name: fleet-telemetry-consumer
19+
image: quay.io/rajsinghcpre/fleet-telemetry-consumer:v0.0.1
20+
args: ["-config", "/etc/fleet-telemetry-consumer/config.json"]
21+
volumeMounts:
22+
- name: config-volume
23+
mountPath: /etc/fleet-telemetry-consumer
24+
subPath: config.json
25+
volumes:
26+
- name: config-volume
27+
configMap:
28+
name: fleet-telemetry-config

kustomization/kustomization.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
resources:
5+
- deployment.yaml
6+
7+
configMapGenerator:
8+
- name: fleet-telemetry-config
9+
files:
10+
- consumer_config.json

0 commit comments

Comments
 (0)