Skip to content

Commit

Permalink
single build arg
Browse files Browse the repository at this point in the history
  • Loading branch information
julianocosta89 committed Nov 6, 2024
1 parent 17ed6cf commit 401cba6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/component-build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,10 @@ jobs:
with:
fetch-depth: 0
- name: Load .env variables
id: load_env
run: |
while IFS= read -r line || [ -n "$line" ]; do
[[ "$line" =~ ^#.*$ ]] || [[ -z "$line" ]] && continue
echo "$line" >> $GITHUB_ENV
done < .env
export $(grep -v '^#' .env | xargs)
echo "OTEL_JAVA_AGENT_VERSION=${OTEL_JAVA_AGENT_VERSION}" >> $GITHUB_ENV
- name: Check for changes and set push options
id: check_changes
run: |
Expand Down Expand Up @@ -178,6 +177,8 @@ jobs:
file: ${{ matrix.file_tag.file }}
platforms: linux/amd64,linux/arm64
push: ${{ inputs.push }}
build-args: |
OTEL_JAVA_AGENT_VERSION=${OTEL_JAVA_AGENT_VERSION}
tags: |
${{ inputs.dockerhub_repo }}:${{ inputs.version }}-${{matrix.file_tag.tag_suffix }}
${{ inputs.dockerhub_repo }}:latest-${{matrix.file_tag.tag_suffix }}
Expand Down

0 comments on commit 401cba6

Please sign in to comment.