Skip to content

In case of duplicate headers, headers from kafka-message should be re… #24

In case of duplicate headers, headers from kafka-message should be re…

In case of duplicate headers, headers from kafka-message should be re… #24

Workflow file for this run

name: Release
on:
push:
branches:
- main
paths:
- "**/version"
jobs:
check:
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.filter.outputs.changes }}
steps:
- name: Check out code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
kafka-http-connector:
- 'kafka-http-connector/version'
rabbitmq-http-connector:
- 'rabbitmq-http-connector/version'
aws-sqs-http-connector:
- 'aws-sqs-http-connector/version'
nats-streaming-http-connector:
- 'nats-streaming-http-connector/version'
nats-jetstream-http-connector:
- 'nats-jetstream-http-connector/version'
aws-kinesis-http-connector:
- 'aws-kinesis-http-connector/version'
gcp-pubsub-http-connector:
- 'gcp-pubsub-http-connector/version'
redis-http-connector:
- 'redis-http-connector/version'
run-docker-build-push-action:
needs: check
strategy:
matrix:
run: ${{ fromJSON(needs.check.outputs.packages) }}
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: "go.mod"
cache: true
- name: get version
run: cd ${{ matrix.run }}; version=$(cat version);echo "version=$version" >> $GITHUB_ENV
- name: Setup Ko
uses: ko-build/setup-ko@3aebd0597dc1e9d1a26bcfdb7cbeb19c131d3037 # v0.7
- name: Build
shell: bash
run: |
KO_DOCKER_REPO=ghcr.io/fission/keda-${{ matrix.run }} ko publish --platform=linux/amd64,linux/arm64,linux/arm/v7 -t ${{ env.version }} ./${{ matrix.run }} --bare