Merge pull request #78 from DarkKirb/fix-update-secrets-setup

fix secrets setup for the update script
This commit is contained in:
Charlotte 🦝 Delenk 2023-02-12 08:41:42 +01:00 committed by GitHub
commit 02cc55a0c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,13 +22,9 @@ jobs:
- name: Download attic - name: Download attic
run: nix build github:DarkKirb/nix-packages#attic-client run: nix build github:DarkKirb/nix-packages#attic-client
- name: Set up secrets - name: Set up secrets
run: | run: nix run github:DarkKirb/nix-packages#attic-client -- login attic-server https://attic-nocdn.chir.rs/ "$ATTIC_TOKEN"
echo "$NIX_CACHE_KEY" > ~/cache.key
sudo mkdir /root/.aws
echo "$AWS_CREDENTIALS" | sudo tee /root/.aws/credentials > /dev/null
env: env:
NIX_CACHE_KEY: ${{secrets.NIX_CACHE_KEY}} ATTIC_TOKEN: ${{secrets.ATTIC_TOKEN}}
AWS_CREDENTIALS: ${{secrets.AWS_CREDENTIALS}}
- name: Update flake.lock - name: Update flake.lock
run: nix flake update run: nix flake update
- name: Run update script - name: Run update script