Skip to content

Commit

Permalink
test secrets mount
Browse files Browse the repository at this point in the history
  • Loading branch information
jsvapiav committed Mar 21, 2024
1 parent 6078573 commit 677daba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/build-n-upload-action/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ RUN /install_nix.sh
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh

RUN --mount=type=secret,id=github_token \
cat /run/secrets/github_token

RUN --mount=type=secret,id=cachix_token2 \
cat /run/secrets/cachix_token2

# Code file to execute when the docker container starts up (`entrypoint.sh`)
ENTRYPOINT ["/entrypoint.sh"]

7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
pull_request_target:
branches:
- main
secrets:
CACHIX_TOKEN:
description: "chaix token for binary repository"
required: true

permissions:
contents: read
Expand All @@ -33,6 +37,9 @@ jobs:
uses: ./.github/actions/build-n-upload-action
with:
build_target: 'fmo-os-installer-debug'
context: .
secrets: |
"cachix_token2 = here token example"
# Use the output from the `hello` step
- name: Upload Build Artifacts
run: |
Expand Down

0 comments on commit 677daba

Please sign in to comment.