Skip to content

Commit 3078208

Browse files
committed
Add release combined workflows
1 parent 2d1e1d1 commit 3078208

File tree

7 files changed

+174
-53
lines changed

7 files changed

+174
-53
lines changed

.github/workflows/e2e-go.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ on:
1212
required: false
1313
default: "us-east-1"
1414

15-
push:
16-
branches:
17-
- feat/unified-lambda-layer
18-
1915
permissions:
2016
contents: read
2117

.github/workflows/e2e-ruby.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ on:
1212
required: false
1313
default: "us-east-1"
1414

15-
push:
16-
branches:
17-
- feat/unified-lambda-layer
18-
1915
permissions:
2016
contents: read
2117

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: "Release Combined Go Lambda Layer"
2+
3+
on:
4+
push:
5+
tags:
6+
- combined-layer-go/**
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
create-release:
13+
permissions:
14+
contents: write
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- name: Create Release
19+
run: gh release create ${{ github.ref_name }} --draft --title ${{ github.ref_name }}
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
23+
build-combined-layer:
24+
permissions:
25+
contents: write
26+
runs-on: ubuntu-latest
27+
needs: create-release
28+
strategy:
29+
matrix:
30+
architecture:
31+
- amd64
32+
- arm64
33+
steps:
34+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
35+
36+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
37+
with:
38+
go-version-file: collector/go.mod
39+
40+
- name: Build Combined Layer
41+
run: |
42+
cd go
43+
ARCHITECTURE=${{ matrix.architecture }} ./build-combined.sh
44+
env:
45+
ARCHITECTURE: ${{ matrix.architecture }}
46+
47+
- name: Rename zip file for architecture
48+
run: |
49+
mv build/otel-go-extension-layer.zip build/otel-go-extension-layer-${{ matrix.architecture }}.zip
50+
working-directory: go
51+
52+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
53+
name: Save assembled combined layer to build
54+
with:
55+
name: otel-go-extension-layer-${{ matrix.architecture }}.zip
56+
path: go/build/otel-go-extension-layer-${{ matrix.architecture }}.zip
57+
58+
- name: Add Binary to Release
59+
run: |
60+
gh release upload ${{github.ref_name}} go/build/otel-go-extension-layer-${{ matrix.architecture }}.zip
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
64+
publish-combined-layer:
65+
permissions:
66+
contents: read
67+
id-token: write
68+
uses: ./.github/workflows/layer-publish.yml
69+
needs: build-combined-layer
70+
strategy:
71+
matrix:
72+
architecture:
73+
- amd64
74+
- arm64
75+
aws_region:
76+
- us-east-1
77+
with:
78+
artifact-name: otel-go-extension-layer-${{ matrix.architecture }}.zip
79+
layer-name: otel-go-extension
80+
component-version: "combined"
81+
architecture: ${{ matrix.architecture }}
82+
runtimes: provided.al2 provided.al2023
83+
release-group: prod
84+
aws_region: ${{ matrix.aws_region }}
85+
secrets: inherit
86+
87+

.github/workflows/release-combined-layer-java.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,22 +85,7 @@ jobs:
8585
- javaagent
8686
- wrapper
8787
aws_region:
88-
- ap-northeast-1
89-
- ap-northeast-2
90-
- ap-south-1
91-
- ap-southeast-1
92-
- ap-southeast-2
93-
- ca-central-1
94-
- eu-central-1
95-
- eu-north-1
96-
- eu-west-1
97-
- eu-west-2
98-
- eu-west-3
99-
- sa-east-1
10088
- us-east-1
101-
- us-east-2
102-
- us-west-1
103-
- us-west-2
10489
with:
10590
artifact-name: otel-java-${{ matrix.layer_type }}-extension-layer-${{ matrix.architecture }}.zip
10691
layer-name: otel-java-${{ matrix.layer_type }}-extension

.github/workflows/release-combined-layer-nodejs.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,7 @@ jobs:
8787
- amd64
8888
- arm64
8989
aws_region:
90-
- ap-northeast-1
91-
- ap-northeast-2
92-
- ap-south-1
93-
- ap-southeast-1
94-
- ap-southeast-2
95-
- ca-central-1
96-
- eu-central-1
97-
- eu-north-1
98-
- eu-west-1
99-
- eu-west-2
100-
- eu-west-3
101-
- sa-east-1
10290
- us-east-1
103-
- us-east-2
104-
- us-west-1
105-
- us-west-2
10691
with:
10792
artifact-name: otel-nodejs-extension-layer-${{ matrix.architecture }}.zip
10893
layer-name: otel-nodejs-extension

.github/workflows/release-combined-layer-python.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,7 @@ jobs:
7373
- amd64
7474
- arm64
7575
aws_region:
76-
- ap-northeast-1
77-
- ap-northeast-2
78-
- ap-south-1
79-
- ap-southeast-1
80-
- ap-southeast-2
81-
- ca-central-1
82-
- eu-central-1
83-
- eu-north-1
84-
- eu-west-1
85-
- eu-west-2
86-
- eu-west-3
87-
- sa-east-1
8876
- us-east-1
89-
- us-east-2
90-
- us-west-1
91-
- us-west-2
9277
with:
9378
artifact-name: otel-python-extension-layer-${{ matrix.architecture }}.zip
9479
layer-name: otel-python-extension
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: "Release Combined Ruby Lambda Layer"
2+
3+
on:
4+
push:
5+
tags:
6+
- combined-layer-ruby/**
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
create-release:
13+
permissions:
14+
contents: write
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- name: Create Release
19+
run: gh release create ${{ github.ref_name }} --draft --title ${{ github.ref_name }}
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
23+
build-combined-layer:
24+
permissions:
25+
contents: write
26+
runs-on: ubuntu-latest
27+
needs: create-release
28+
strategy:
29+
matrix:
30+
architecture:
31+
- amd64
32+
- arm64
33+
steps:
34+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
35+
36+
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
37+
with:
38+
go-version-file: collector/go.mod
39+
40+
- name: Build Combined Layer
41+
run: |
42+
cd ruby
43+
ARCHITECTURE=${{ matrix.architecture }} ./build-combined.sh
44+
env:
45+
ARCHITECTURE: ${{ matrix.architecture }}
46+
47+
- name: Rename zip file for architecture
48+
run: |
49+
mv build/otel-ruby-extension-layer.zip build/otel-ruby-extension-layer-${{ matrix.architecture }}.zip
50+
working-directory: ruby
51+
52+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
53+
name: Save assembled combined layer to build
54+
with:
55+
name: otel-ruby-extension-layer-${{ matrix.architecture }}.zip
56+
path: ruby/build/otel-ruby-extension-layer-${{ matrix.architecture }}.zip
57+
58+
- name: Add Binary to Release
59+
run: |
60+
gh release upload ${{github.ref_name}} ruby/build/otel-ruby-extension-layer-${{ matrix.architecture }}.zip
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
64+
publish-combined-layer:
65+
permissions:
66+
contents: read
67+
id-token: write
68+
uses: ./.github/workflows/layer-publish.yml
69+
needs: build-combined-layer
70+
strategy:
71+
matrix:
72+
architecture:
73+
- amd64
74+
- arm64
75+
aws_region:
76+
- us-east-1
77+
with:
78+
artifact-name: otel-ruby-extension-layer-${{ matrix.architecture }}.zip
79+
layer-name: otel-ruby-extension
80+
component-version: "combined"
81+
architecture: ${{ matrix.architecture }}
82+
runtimes: ruby3.2 ruby3.4
83+
release-group: prod
84+
aws_region: ${{ matrix.aws_region }}
85+
secrets: inherit
86+
87+

0 commit comments

Comments
 (0)