Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEV] update release workflow layer name #7

Merged
merged 2 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/layer-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,11 @@ jobs:
--principal "*" \
--statement-id publish \
--action lambda:GetLayerVersion
echo "${LAYER_VERSION}" > layer-version.txt

- name: Upload Layer Version artifact
uses: actions/upload-artifact@v4
if: ${{ inputs.architecture == 'amd64' && inputs.aws_region == 'us-east-1' }}
with:
name: layer-version
path: layer-version.txt
16 changes: 13 additions & 3 deletions .github/workflows/release-layer-collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- us-west-2
with:
artifact-name: opentelemetry-collector-layer-${{ matrix.architecture }}.zip
layer-name: opentelemetry-collector
layer-name: logzio-opentelemetry-collector
component-version: ${{needs.build-layer.outputs.COLLECTOR_VERSION}}
architecture: ${{ matrix.architecture }}
release-group: prod
Expand All @@ -96,19 +96,29 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Download Layer version
uses: actions/download-artifact@v4
with:
name: layer-version

- name: Read Layer version
id: layer-version
run: echo "::set-output name=version::$(cat layer-version.txt)"

- name: Append Layer ARNs to Release Body
run: |
COLLECTOR_VERSION=${{ needs.build-layer.outputs.COLLECTOR_VERSION }}
LAYER_VERSION=${{ steps.layer-version.outputs.version }}

MESSAGE="### Lambda Layers for OpenTelemetry Collector (${COLLECTOR_VERSION})\n\n"
MESSAGE+="The following Lambda layers are available for this release. Use the appropriate ARN for your Lambda architecture:\n\n"
MESSAGE+="#### 🖥️ **amd64 (x86_64)**\n"
MESSAGE+="\`\`\`\n"
MESSAGE+="arn:aws:lambda:<region>:486140753397:layer:logzio-opentelemetry-collector-amd64-${COLLECTOR_VERSION//./_}:1\n"
MESSAGE+="arn:aws:lambda:<region>:486140753397:layer:logzio-opentelemetry-collector-amd64-${COLLECTOR_VERSION//./_}:$LAYER_VERSION\n"
MESSAGE+="\`\`\`\n\n"
MESSAGE+="#### 📱 **arm64**\n"
MESSAGE+="\`\`\`\n"
MESSAGE+="arn:aws:lambda:<region>:486140753397:layer:logzio-opentelemetry-collector-arm64-${COLLECTOR_VERSION//./_}:1\n"
MESSAGE+="arn:aws:lambda:<region>:486140753397:layer:logzio-opentelemetry-collector-arm64-${COLLECTOR_VERSION//./_}:$LAYER_VERSION\n"
MESSAGE+="\`\`\`\n\n"

# Append the message to the release notes
Expand Down
Loading