Skip to content

Commit

Permalink
Manage requirements files with variables (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentClarret authored May 23, 2024
1 parent 966fc36 commit 1d13e8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-devagent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ env:
PYAPP_VERSION: "0.21.1"
CARGO_COMMAND: cargo # Cargo command to run
VERSION_SUFFIX: "-dev"
AGENT_REQUIREMENTS: "https://raw.githubusercontent.com/DataDog/datadog-agent/main/requirements.txt"

jobs:
binaries:
Expand Down Expand Up @@ -90,7 +91,7 @@ jobs:

- name: Download the requirements file
run: |
curl -L -o /tmp/requirements.txt https://raw.githubusercontent.com/DataDog/datadog-agent/main/requirements.txt
curl -L -o ${PYAPP_PROJECT_DEPENDENCY_FILE} ${AGENT_REQUIREMENTS}
- name: Configure cross compiling
if: matrix.job.cross
Expand All @@ -104,7 +105,7 @@ jobs:
fi
- name: Build binary
run: DOCKER_OPTS="-v /tmp/requirements.txt:/tmp/requirements.txt" $CARGO_COMMAND build --manifest-path ${PYAPP_REPO}/Cargo.toml --release
run: DOCKER_OPTS="-v ${PYAPP_PROJECT_DEPENDENCY_FILE}:${PYAPP_PROJECT_DEPENDENCY_FILE}" $CARGO_COMMAND build --manifest-path ${PYAPP_REPO}/Cargo.toml --release

- name: Set version suffix
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
Expand Down

0 comments on commit 1d13e8a

Please sign in to comment.