Skip to content

Commit

Permalink
Merge pull request #91 from nityatadepalli123/master
Browse files Browse the repository at this point in the history
add kafka-connect sample to workflow
  • Loading branch information
JunliWang authored Jan 24, 2024
2 parents a545e4b + 5864232 commit 2cd16b5
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/kafka-connect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build & publish event-streams-samples images
on:
push:
branches: ['master']
paths:
- 'kafka-connect/**'

env:
REGISTRY: ghcr.io

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Run bash script
run: bash kafka-connect/build.sh
- name: Build image
run: |
docker build . --file kafka-connect/Dockerfile --tag eventstreams-kafka-connect:latest --label "latest"
- name: Push image
run: |
IMAGE_ID=ghcr.io/${{ github.repository }}/eventstreams-kafka-connect:latest
# This changes all uppercase characters to lowercase.
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
echo IMAGE_ID=$IMAGE_ID
docker tag eventstreams-kafka-connect:latest $IMAGE_ID
docker push $IMAGE_ID
2 changes: 1 addition & 1 deletion kafka-connect/IKS/kafka-connect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
runAsUser: 5000
containers:
- name: kafkaconnect-container
image: ibmcom/eventstreams-kafkaconnect:latest
image: event-streams-samples/eventstreams-kafkaconnect:latest
readinessProbe:
httpGet:
path: /
Expand Down
1 change: 0 additions & 1 deletion kafka-java-liberty-sample/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# test
FROM gradle:jdk11-alpine as jdk

COPY --chown=1000 . /usr/src/app
Expand Down

0 comments on commit 2cd16b5

Please sign in to comment.