[CI] Distribute connect
as a rpk managed plugin
#4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release rpk connect plugin (managed) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: { } | |
workflow_dispatch: { } | |
jobs: | |
build_and_push_rpk_connect_plugin: | |
# Let's make this fast | |
runs-on: ubuntu-latest-32 | |
steps: | |
- name: Check Out Repo | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.x | |
check-latest: true | |
- name: Create a git tag (LOCAL ONLY) | |
# We pick something that won't look like a latest version, and doesn't clash with any real version | |
run: git tag -a v0.0.9999 -m "v0.0.9999" | |
- name: Build binaries | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
version: 1.26.2 | |
args: build --timeout 120m | |
- name: Upload binaries as rpk managed plugin | |
uses: ./.github/actions/upload_managed_plugin | |
with: | |
# WITHOLD AWS CREDS. Not needed for --dry-run | |
aws_access_key_id: "TODO" | |
aws_secret_access_key: "TODO" | |
aws_region: "us-west-2" | |
aws_s3_bucket: "rpk-plugins-repo" | |
artifacts_file: target/dist/artifacts.json | |
metadata_file: target/dist/metadata.json | |
plugin_name: "connect" | |
goos: linux,darwin | |
goarch: amd64,arm64 | |
repo_hostname: rpk-plugins.redpanda.com | |
# IMPORTANT | |
dry_run: true |