From 6b177036494d93c7c412bb9edbea075ebeaf00c1 Mon Sep 17 00:00:00 2001 From: s3rj1k Date: Wed, 21 Feb 2024 23:34:40 +0100 Subject: [PATCH] Add support for passing GENERIC_TOKEN secret into Docker DEB builder. --- .github/workflows/ci-deb-packages-v2.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-deb-packages-v2.yml b/.github/workflows/ci-deb-packages-v2.yml index 1cab8282..ef84f4f9 100644 --- a/.github/workflows/ci-deb-packages-v2.yml +++ b/.github/workflows/ci-deb-packages-v2.yml @@ -192,8 +192,18 @@ jobs: - name: Build debs in Docker shell: sh + env: + GENERIC_TOKEN: ${{ secrets.GENERIC_TOKEN }} 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 GENERIC_TOKEN="${GENERIC_TOKEN}" \ + ${{ inputs.BASE_IMAGE }}:${{ inputs.DISTRO_CODENAME }} - name: Set custom variables shell: sh