Revert "aws_sqs: enforce 256 KB message and batch size limits (#4048)… #1113
This file contains hidden or 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: Upload rpk connect plugin to S3 | |
| on: | |
| push: | |
| branches: [main] | |
| tags: | |
| # All runs triggered by tag will really push to S3. | |
| # Take care when adding more patterns here. | |
| - 'v[0-9]+.[0-9]+.[0-9]+' | |
| - 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+' | |
| pull_request: | |
| # Keep CI snappy for unrelated PRs | |
| paths: | |
| - 'resources/plugin_uploader/**' | |
| - '.github/workflows/upload_plugin.yml' | |
| - '.github/actions/upload_managed_plugin/**' | |
| - '.goreleaser.yml' | |
| workflow_dispatch: {} | |
| env: | |
| # Do dry run in most cases, UNLESS the triggering event was a "tag". | |
| DRY_RUN: ${{ github.ref_type != 'tag' }} | |
| jobs: | |
| upload_rpk_connect_plugin: | |
| # Let's make this fast by using a beefy runner. | |
| runs-on: ubuntu-latest-32 | |
| if: ${{ github.repository == 'redpanda-data/connect' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'redpanda-data/connect') }} | |
| permissions: | |
| contents: read | |
| id-token: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| binary-name: ['connect', 'connect-fips'] | |
| steps: | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v6 | |
| with: | |
| aws-region: ${{ vars.RP_AWS_CRED_REGION }} | |
| role-to-assume: arn:aws:iam::${{ secrets.RP_AWS_CRED_ACCOUNT_ID }}:role/${{ vars.RP_AWS_CRED_BASE_ROLE_NAME }}${{ github.event.repository.name }} | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Install Microsoft Go | |
| run: | | |
| GO_VERSION=$(go version | cut -d' ' -f3 | cut -d'.' -f1,2) | |
| curl -sSLf -o "$RUNNER_TEMP/msgo.tgz" https://aka.ms/golang/release/latest/${GO_VERSION}.linux-amd64.tar.gz | |
| [[ -d "$RUNNER_TEMP/bin" ]] || install -d -m 0755 "$RUNNER_TEMP/bin" | |
| [[ -d "$RUNNER_TEMP/microsoft" ]] || install -d -m 0755 "$RUNNER_TEMP/microsoft" | |
| tar -C "$RUNNER_TEMP/microsoft" -xf "$RUNNER_TEMP/msgo.tgz" | |
| echo "$RUNNER_TEMP/bin" >> "$GITHUB_PATH" | |
| - name: Install patchelf | |
| run: sudo apt-get update && sudo apt-get install -y patchelf | |
| - name: Write telemetry private key | |
| env: | |
| CONNECT_TELEMETRY_PRIV_KEY: ${{ secrets.TELEMETRY_PRIVATE_KEY }} | |
| run: | | |
| git update-index --skip-worktree ./internal/telemetry/key.pem | |
| echo "$CONNECT_TELEMETRY_PRIV_KEY" > ./internal/telemetry/key.pem | |
| - name: Build binaries | |
| uses: goreleaser/goreleaser-action@v7 | |
| with: | |
| args: build --config ./.goreleaser/${{ matrix.binary-name }}.yaml ${{ env.DRY_RUN != 'false' && '--snapshot' || '' }} | |
| - name: Upload plugin to S3 | |
| uses: ./.github/actions/upload_managed_plugin | |
| with: | |
| aws_region: "us-west-2" | |
| aws_s3_bucket: "rpk-plugins-repo" | |
| project_root_dir: ${{ github.workspace }} | |
| artifacts_file: ${{ github.workspace }}/target/dist/artifacts.json | |
| metadata_file: ${{ github.workspace }}/target/dist/metadata.json | |
| plugin_name: ${{ matrix.binary-name }} | |
| goos: ${{ matrix.binary-name == 'connect' && 'linux,darwin' || 'linux' }} | |
| goarch: ${{ matrix.binary-name == 'connect' && 'amd64,arm64' || 'amd64' }} | |
| repo_hostname: rpk-plugins.redpanda.com | |
| dry_run: ${{ env.DRY_RUN != 'false' }} | |