Skip to content

Commit

Permalink
Start trying to build with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharycmontoya committed Mar 7, 2024
1 parent 4928e2c commit 2ac744e
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ on:
pull_request:
workflow_dispatch:

env:
sdkVersion: 8.0.100
build: true
target: builder
baseImage: debian
command: "Clean BuildTracerHome BuildNativeLoader ExtractDebugInfoLinux"
retryCountForRunCommand: 1

jobs:
build:
runs-on: arm-4core-linux
Expand All @@ -16,5 +24,16 @@ jobs:
with:
dotnet-version: '8.0.100'

- name: Build managed and native ARM64 binaries
run: ./tracer/build.sh Clean BuildTracerHome BuildNativeLoader ExtractDebugInfoLinux
- name: Install docker
run: |
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
- name: Build debian Docker image
run: |
sudo docker build \
--build-arg DOTNETSDK_VERSION=$sdkVersion \
--tag dd-trace-dotnet/${{ env.baseImage }}-${{ env.target }}:$sdkVersion \
--target ${{ env.target }} \
--file ./tracer/build/_build/docker/${{ env.baseImage }}.dockerfile \
./tracer/build/_build

0 comments on commit 2ac744e

Please sign in to comment.