File tree 3 files changed +37
-2
lines changed
kafka-java-liberty-sample
3 files changed +37
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Build & publish event-streams-samples images
2
+ on :
3
+ push :
4
+ branches : ['master']
5
+ paths :
6
+ - ' kafka-connect/**'
7
+
8
+ env :
9
+ REGISTRY : ghcr.io
10
+
11
+ jobs :
12
+ build-and-push-image :
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ contents : read
16
+ packages : write
17
+
18
+ steps :
19
+ - name : Checkout repository
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Log in to registry
23
+ run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
24
+ - name : Run bash script
25
+ run : bash kafka-connect/build.sh
26
+ - name : Build image
27
+ run : |
28
+ docker build . --file kafka-connect/Dockerfile --tag eventstreams-kafka-connect:latest --label "latest"
29
+ - name : Push image
30
+ run : |
31
+ IMAGE_ID=ghcr.io/${{ github.repository }}/eventstreams-kafka-connect:latest
32
+ # This changes all uppercase characters to lowercase.
33
+ IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
34
+ echo IMAGE_ID=$IMAGE_ID
35
+ docker tag eventstreams-kafka-connect:latest $IMAGE_ID
36
+ docker push $IMAGE_ID
Original file line number Diff line number Diff line change 21
21
runAsUser : 5000
22
22
containers :
23
23
- name : kafkaconnect-container
24
- image : ibmcom /eventstreams-kafkaconnect:latest
24
+ image : event-streams-samples /eventstreams-kafkaconnect:latest
25
25
readinessProbe :
26
26
httpGet :
27
27
path : /
Original file line number Diff line number Diff line change 1
- # test
2
1
FROM gradle:jdk11-alpine as jdk
3
2
4
3
COPY --chown=1000 . /usr/src/app
You can’t perform that action at this time.
0 commit comments