File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,17 @@ jobs:
113
113
- uses : actions/checkout@v4
114
114
with :
115
115
fetch-depth : 0
116
+ - name : Load environment variables from .env file
117
+ run : |
118
+ if [ -f .env ]; then
119
+ # Filter out comments and empty lines, then add each variable to $GITHUB_ENV
120
+ grep -vE '^\s*#|^\s*$' .env | while read -r line; do
121
+ echo "$line" >> $GITHUB_ENV
122
+ done
123
+ else
124
+ echo ".env file not found!"
125
+ exit 1
126
+ fi
116
127
- name : Check for changes and set push options
117
128
id : check_changes
118
129
run : |
@@ -155,6 +166,10 @@ jobs:
155
166
file : ${{ matrix.file_tag.file }}
156
167
platforms : linux/amd64,linux/arm64
157
168
push : ${{ inputs.push }}
169
+ build-args : |
170
+ OTEL_JAVA_AGENT_VERSION=${{ env.OTEL_JAVA_AGENT_VERSION }}
171
+ OPENTELEMETRY_CPP_VERSION=${{ env.OPENTELEMETRY_CPP_VERSION }}
172
+ TRACETEST_IMAGE_VERSION=${{ env.TRACETEST_IMAGE_VERSION }}
158
173
tags : |
159
174
${{ env.GHCR_REPO }}:${{ inputs.version }}-${{ matrix.file_tag.tag_suffix }}
160
175
${{ env.GHCR_REPO }}:latest-${{ matrix.file_tag.tag_suffix }}
You can’t perform that action at this time.
0 commit comments