Skip to content
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
12 changes: 12 additions & 0 deletions .github/workflows/publish-layer-collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ on:
description: 'Build tags to customize collector build'
required: false
type: string
codesigning-profile:
description: 'The AWS Signing Profile for the layers'
required: false
type: string

permissions:
contents: read
Expand All @@ -70,6 +74,10 @@ jobs:
build-layer:
needs: prepare-build-jobs
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
attestations: write
strategy:
matrix: ${{ fromJSON(needs.prepare-build-jobs.outputs.build_jobs) }}
steps:
Expand All @@ -89,6 +97,10 @@ jobs:
fi
echo "Build tags: $BUILDTAGS"
make -C collector package GOARCH=${{ matrix.architecture }} BUILDTAGS=$BUILDTAGS
- name: Generate artifact attestation
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a #v3.0.0
with:
subject-path: ${{ github.workspace }}/collector/build/opentelemetry-collector-layer-${{ matrix.architecture }}.zip
- name: Upload Collector Artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/release-layer-collector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-layer:
permissions:
id-token: write
contents: write
attestations: write
runs-on: ubuntu-latest
needs: create-release
strategy:
Expand All @@ -39,6 +41,12 @@ jobs:
go-version-file: collector/go.mod
- name: build
run: make -C collector package GOARCH=${{ matrix.architecture }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a #v3.0.0
with:
subject-path: ${{ github.workspace }}/collector/build/opentelemetry-collector-layer-${{ matrix.architecture }}.zip

- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: opentelemetry-collector-layer-${{ matrix.architecture }}.zip
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release-layer-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-layer:
permissions:
id-token: write
contents: write
attestations: write
runs-on: ubuntu-latest
needs: create-release
outputs:
Expand All @@ -44,12 +46,21 @@ jobs:
cd java
./gradlew :layer-javaagent:assemble :layer-wrapper:assemble --scan --stacktrace

- name: Generate artifact attestation for javaagent
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a #v3.0.0
with:
subject-path: java/layer-javaagent/build/distributions/opentelemetry-javaagent-layer.zip

- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
name: Save javaagent layer to build
with:
name: opentelemetry-javaagent-layer.zip
path: java/layer-javaagent/build/distributions/opentelemetry-javaagent-layer.zip

- name: Generate artifact attestation for javawrapper
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a #v3.0.0
with:
subject-path: java/layer-wrapper/build/distributions/opentelemetry-javawrapper-layer.zip
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
name: Save javawrapper layer to build
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-layer-nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-layer:
permissions:
id-token: write
contents: write
attestations: write
runs-on: ubuntu-latest
needs: create-release
outputs:
Expand Down Expand Up @@ -51,6 +53,10 @@ jobs:
run: mv layer.zip opentelemetry-nodejs-layer.zip
working-directory: nodejs/packages/layer/build

- name: Generate artifact attestation for nodejs-layer
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a #v3.0.0
with:
subject-path: nodejs/packages/layer/build/opentelemetry-nodejs-layer.zip
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
name: Save assembled layer to build
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release-layer-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ jobs:
run: |
ls -al
working-directory: python/src/build

- name: Generate artifact attestation for python-layer
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a #v3.0.0
with:
subject-path: python/src/build/opentelemetry-python-layer.zip

- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
name: Save assembled layer to build
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release-layer-ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-layer:
permissions:
id-token: write
contents: write
attestations: write
runs-on: ubuntu-latest
needs: create-release
outputs:
Expand Down Expand Up @@ -50,6 +52,11 @@ jobs:
ls -al
working-directory: ruby/src/build


- name: Generate artifact attestation for ruby-layer
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a #v3.0.0
with:
subject-path: ruby/src/build/opentelemetry-ruby-layer.zip
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
name: Save assembled layer to build
with:
Expand Down
Loading