Release Collector Lambda layer #9
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 Collector Lambda layer" | ||
on: | ||
release: | ||
types: [published] | ||
permissions: | ||
id-token: write | ||
contents: write | ||
jobs: | ||
build-layer: | ||
Check failure on line 12 in .github/workflows/release-layer-collector.yml GitHub Actions / Release Collector Lambda layerInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
needs: create-release | ||
strategy: | ||
matrix: | ||
architecture: | ||
- amd64 | ||
- arm64 | ||
outputs: | ||
COLLECTOR_VERSION: ${{ steps.save-collector-version.outputs.COLLECTOR_VERSION }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '^1.23.1' | ||
- name: build | ||
run: make -C collector package GOARCH=${{ matrix.architecture }} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: opentelemetry-collector-layer-${{ matrix.architecture }}.zip | ||
path: ${{ github.workspace }}/collector/build/opentelemetry-collector-layer-${{ matrix.architecture }}.zip | ||
- name: Save Collector Version | ||
if: ${{ matrix.architecture == 'amd64' }} | ||
id: save-collector-version | ||
shell: bash | ||
# `./collector -v` output is in the form `v0.75.0` | ||
run: | | ||
COLLECTOR_VERSION=$( ${{ github.workspace }}/collector/build/extensions/collector -v) | ||
echo "COLLECTOR_VERSION=$COLLECTOR_VERSION" >> $GITHUB_OUTPUT | ||
publish-layer: | ||
uses: ./.github/workflows/layer-publish.yml | ||
needs: build-layer | ||
strategy: | ||
matrix: | ||
architecture: | ||
- amd64 | ||
- arm64 | ||
aws_region: | ||
- us-east-1 | ||
- us-east-2 | ||
with: | ||
artifact-name: opentelemetry-collector-layer-${{ matrix.architecture }}.zip | ||
layer-name: opentelemetry-collector | ||
component-version: ${{needs.build-layer.outputs.COLLECTOR_VERSION}} | ||
architecture: ${{ matrix.architecture }} | ||
release-group: prod | ||
aws_region: ${{ matrix.aws_region }} | ||
secrets: inherit |