Skip to content

Commit

Permalink
Add support for passing .netrc secret into Docker DEB builder.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rj1k committed Feb 21, 2024
1 parent 8f4109c commit d317790
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci-deb-packages-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,18 @@ jobs:

- name: Build debs in Docker
shell: sh
env:
NETRC: ${{ secrets.NETRC }}
run: |
docker run --platform linux/${{ inputs.PLATFORM }} --rm --entrypoint="/usr/local/bin/run.sh" -w /root -v $(pwd):/root -v /tmp/${GITHUB_RUN_ID}/run.sh:/usr/local/bin/run.sh ${{ inputs.BASE_IMAGE }}:${{ inputs.DISTRO_CODENAME }}
docker run \
--platform linux/${{ inputs.PLATFORM }} \
--rm \
--entrypoint="/usr/local/bin/run.sh" \
-w /root \
-v $(pwd):/root \
-v /tmp/${GITHUB_RUN_ID}/run.sh:/usr/local/bin/run.sh:ro \
-e NETRC="${NETRC}" \
${{ inputs.BASE_IMAGE }}:${{ inputs.DISTRO_CODENAME }}
- name: Set custom variables
shell: sh
Expand Down

0 comments on commit d317790

Please sign in to comment.