diff --git a/.github/actions/build-n-upload-action/Dockerfile b/.github/actions/build-n-upload-action/Dockerfile index a1efb0f..1e187ed 100644 --- a/.github/actions/build-n-upload-action/Dockerfile +++ b/.github/actions/build-n-upload-action/Dockerfile @@ -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"] diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d888376..0b4a318 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,10 @@ on: pull_request_target: branches: - main + secrets: + CACHIX_TOKEN: + description: "chaix token for binary repository" + required: true permissions: contents: read @@ -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: |