Skip to content

Commit

Permalink
fix location of key
Browse files Browse the repository at this point in the history
  • Loading branch information
manveru committed Oct 10, 2023
1 parent acc7b1d commit aaae47a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
substituters = https://cache.iog.io https://cache.nixos.org/
min-free = 1073741824
max-free = 2147483648
secret-key-files = hydra_key
secret-key-files = /home/runner/work/capkgs/capkgs/hydra_key
- run: echo "${{secrets.NIX_SIGNING_KEY}}" > hydra_key
- run: |
nix develop \
Expand All @@ -53,3 +53,4 @@ jobs:
AWS_ACCESS_KEY_ID: "${{secrets.AWS_ACCESS_KEY_ID}}"
AWS_SECRET_ACCESS_KEY: "${{secrets.AWS_SECRET_ACCESS_KEY}}"
S3_ENDPOINT: "${{secrets.S3_ENDPOINT}}"
NIX_SIGNING_KEY_FILE: "/home/runner/work/capkgs/capkgs/hydra_key"
4 changes: 3 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
list:
just -l

secret_key := env_var_or_default('NIX_SIGNING_KEY_FILE', "hydra_key")

# Based on releases.json, upload the CA contents and update packages.json
packages *ARGS:
./packages.cr \
--to "s3://devx?secret-key=hydra_key&endpoint=${S3_ENDPOINT}&region=auto&compression=zstd" \
--to "s3://devx?secret-key={{secret_key}}&endpoint=${S3_ENDPOINT}&region=auto&compression=zstd" \
--from-store https://cache.iog.io \
--systems x86_64-linux

Expand Down

0 comments on commit aaae47a

Please sign in to comment.