Repository navigation
Expand file tree
/
Copy pathrelease-combined-ruby-lambda-layer.yml
More file actions
115 lines (103 loc) · 3 KB
/
Copy pathrelease-combined-ruby-lambda-layer.yml
File metadata and controls
115 lines (103 loc) · 3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: "Release Combined Ruby Lambda Layer"
on:
push:
tags:
- combined-layer-ruby/**
permissions:
contents: read
jobs:
create-release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Create Release
run: gh release create ${{ github.ref_name }} --draft --title ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-combined-layer:
permissions:
contents: write
runs-on: ubuntu-latest
needs: create-release
strategy:
matrix:
architecture:
- amd64
- arm64
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v5
with:
go-version-file: collector/go.mod
- name: Build Combined Layer
run: |
cd ruby
ARCHITECTURE=${{ matrix.architecture }} ./build-combined.sh
env:
ARCHITECTURE: ${{ matrix.architecture }}
- name: Rename zip file for architecture
run: |
mv build/otel-ruby-extension-layer.zip build/otel-ruby-extension-layer-${{ matrix.architecture }}.zip
working-directory: ruby
- uses: actions/upload-artifact@v4
name: Save assembled combined layer to build
with:
name: otel-ruby-extension-layer-${{ matrix.architecture }}.zip
path: ruby/build/otel-ruby-extension-layer-${{ matrix.architecture }}.zip
- name: Add Binary to Release
run: |
gh release upload ${{github.ref_name}} ruby/build/otel-ruby-extension-layer-${{ matrix.architecture }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-combined-layer:
permissions:
contents: read
id-token: write
uses: ./.github/workflows/layer-publish.yml
needs: build-combined-layer
strategy:
matrix:
architecture:
- amd64
- arm64
aws_region:
- 'us-east-1'
- 'us-east-2'
- 'us-west-1'
- 'us-west-2'
- 'eu-central-1'
- 'eu-central-2'
- 'eu-north-1'
- 'eu-west-1'
- 'eu-west-2'
- 'eu-west-3'
- 'eu-south-1'
- 'eu-south-2'
- 'sa-east-1'
- 'ap-northeast-1'
- 'ap-northeast-2'
- 'ap-northeast-3'
- 'ap-south-1'
- 'ap-south-2'
- 'ap-southeast-1'
- 'ap-southeast-2'
- 'ap-southeast-3'
- 'ap-southeast-4'
- 'ap-east-1'
- 'ca-central-1'
- 'ca-west-1'
- 'af-south-1'
- 'me-south-1'
- 'me-central-1'
- 'il-central-1'
with:
artifact-name: otel-ruby-extension-layer-${{ matrix.architecture }}.zip
layer-name: otel-ruby-extension
component-version: "combined"
architecture: ${{ matrix.architecture }}
runtimes: ruby3.2 ruby3.4
release-group: prod
aws_region: ${{ matrix.aws_region }}
secrets: inherit