Skip to content

Commit

Permalink
[spack] Use signing key for buildcache
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricchevalier19 committed Dec 8, 2022
1 parent 0217fb4 commit 2212af7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,5 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
secrets: |
"signingkey=${{ secrets.BUILDCACHE_PRIVATE_KEY }}"
2 changes: 1 addition & 1 deletion spack/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN mkdir -p recipes && \

ADD import_signing_key.sh /tmp

RUN --mount=type=secret,id=signingkey,uid=1000 /tmp/import_signing_key.sh /run/secrets/signingkey
RUN --mount=type=secret,id=signingkey /tmp/import_signing_key.sh /run/secrets/signingkey

FROM base AS builder

Expand Down

0 comments on commit 2212af7

Please sign in to comment.