pass privkey as env
This commit is contained in:
@@ -10,14 +10,16 @@ jobs:
|
|||||||
id-token: write
|
id-token: write
|
||||||
name: build hive configuration
|
name: build hive configuration
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
env:
|
||||||
|
- CACHE_PRIVKEY: ${{secrets.CACHE_PRIVKEY}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: mkdir -p /var/secrets/
|
- run: |
|
||||||
- run: echo ${{ secrets.CACHE_PRIVKEY }} > /var/secrets/cache_privkey
|
mkdir -p /var/secrets/
|
||||||
- run: cat /var/secrets/cache_privkey
|
echo "$CACHE_PRIVKEY" >> /var/secrets/cache_privkey
|
||||||
- run: mkdir -p /etc/nix
|
mkdir -p /etc/nix
|
||||||
- run: cp ./scripts/upload-to-cache.sh /etc/nix/
|
cp ./scripts/upload-to-cache.sh /etc/nix/
|
||||||
- run: chmod +x /etc/nix/upload-to-cache.sh
|
chmod +x /etc/nix/upload-to-cache.sh
|
||||||
- uses: cachix/install-nix-action@v31
|
- uses: cachix/install-nix-action@v31
|
||||||
with:
|
with:
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
|
|||||||
Reference in New Issue
Block a user