Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kvanzuijlen committed Aug 1, 2024
0 parents commit 6c61190
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: ["config:best-practices"],
customDatasources: {
gcs_connector: {
defaultRegistryUrlTemplate: "https://www.confluent.io/hub/page-data/confluentinc/kafka-connect-gcs/page-data.json",
transformTemplates: [
'{"releases": $reverse($.result.data.hubPlugin.versions).{"version": $}, "homepage": "https://www.confluent.io/hub/confluentinc/kafka-connect-gcs"}',
],
},
},
customManagers: [
{
customType: "regex",
fileMatch: ["^Dockerfile$", "(^|/)\\.github/workflows/.+\\.yaml$"],
matchStrings: [
"# renovate: datasource=(?<datasource>.+)\\s*.*confluent-hub install .* (?<depName>.+\\/.+):(?<currentValue>[\\d.]+)",
"# renovate: datasource=(?<datasource>.+) depName=(?<depName>.+\\/.+)\\s*.*:(?<currentValue>[\\d.]+)",
],
},
],
packageRules: [
{
matchManagers: ["github-actions", "dockerfile"],
matchUpdateTypes: ["patch", "minor"],
groupName: "{{{manager}}} (non-major)",
automerge: true,
automergeType: "branch",
},
{
matchManagers: ["regex"],
matchUpdateTypes: ["patch", "minor"],
groupName: "{{{depName}}} (non-major)",
automerge: true,
automergeType: "branch",
},
],
}
35 changes: 35 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@aa33708b10e362ff993539393ff100fa93ed6a27 # v3.5.0
- name: Login to ghcr.io
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' && 'and push'}}
uses: docker/build-push-action@5176d81f87c23d6fc96624dfdbcd9f3830bbe445 # v6.5.0
with:
platforms: linux/amd64,linux/arm64
push: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' }}
# renovate: datasource=custom.gcs_connector depName=confluentinc/kafka-connect-gcs
tags: ghcr.io/kvanzuijlen/confluent-gcs-sink-connector:10.1.12
cache-from: type=gha
cache-to: type=gha,mode=max
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.idea/
/*.iml
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM confluentinc/cp-kafka-connect:7.7.0@sha256:84e15195a15d6aa1baee97f3adb134cbb7702171a1faacc60f7cf178e3f251c0

# renovate: datasource=custom.gcs_connector
RUN confluent-hub install --no-prompt confluentinc/kafka-connect-gcs:10.1.12

0 comments on commit 6c61190

Please sign in to comment.