Skip to content

Commit

Permalink
Add support for passing GENERIC_TOKEN secret into Docker DEB builder.
Browse files Browse the repository at this point in the history
  • Loading branch information
s3rj1k committed Feb 22, 2024
1 parent 8f4109c commit 2049765
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci-deb-packages-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ on:
# outputs:
# ARTIFACT_NAME:
# value: deb-${{env.IMAGE_TAG}}-${{env.PLATFORM}}-artifact
secrets:
GENERIC_TOKEN:
required: false

jobs:
build:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2049765

Please sign in to comment.