diff --git a/.github/workflows/ci-deb-packages-v2.yml b/.github/workflows/ci-deb-packages-v2.yml index 1cab8282..f81e5a5b 100644 --- a/.github/workflows/ci-deb-packages-v2.yml +++ b/.github/workflows/ci-deb-packages-v2.yml @@ -76,6 +76,9 @@ on: # outputs: # ARTIFACT_NAME: # value: deb-${{env.IMAGE_TAG}}-${{env.PLATFORM}}-artifact + secrets: + GENERIC_TOKEN: + required: false jobs: build: @@ -192,8 +195,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