Skip to content

Commit

Permalink
Fix build args for lib injection docker
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCTHsu committed Apr 22, 2024
1 parent 99782a4 commit 4807481
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lib-injection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ jobs:
push: true
tags: ghcr.io/datadog/dd-trace-rb/dd-lib-ruby-init:latest_snapshot
platforms: 'linux/amd64,linux/arm64/v8'
build-args: DDTRACE_RUBY_SHA=${{ github.sha }}
# The build arguments must match what is defined in lib-injection/Dockerfile
build-args: DATADOG_RUBY_GEM_SHA=${{ github.sha }}
context: ./lib-injection
- name: Docker Build
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/datadog/dd-trace-rb/dd-lib-ruby-init:${{ github.sha }}
platforms: 'linux/amd64,linux/arm64/v8'
# The build arguments must match what is defined in lib-injection/Dockerfile
build-args: DATADOG_RUBY_GEM_SHA=${{ github.sha }}
context: ./lib-injection
test:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-lib-injection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ jobs:
push: true
tags: ghcr.io/datadog/dd-trace-rb/dd-lib-ruby-init:${{ steps.version.outputs.version }}
platforms: 'linux/amd64,linux/arm64/v8'
build-args: DDTRACE_RUBY_VERSION=${{ steps.version.outputs.version }}
# The build arguments must match what is defined in lib-injection/Dockerfile
build-args: DATADOG_RUBY_GEM_VERSION=${{ steps.version.outputs.version }}
context: ./lib-injection

0 comments on commit 4807481

Please sign in to comment.