Skip to content

Commit

Permalink
fix(actions): reenable hosted cache
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <cameron.ray.smith@gmail.com>
  • Loading branch information
cameronraysmith committed Jul 7, 2024
1 parent db153e5 commit da269ff
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/actions/build_nix_image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,26 +71,26 @@ runs:
# - name: Setup Local Nix Cache
# uses: DeterminateSystems/magic-nix-cache-action@b46e247b898aa56e6d2d2e728dc6df6c84fdb738 # ratchet:DeterminateSystems/magic-nix-cache-action@v7

# - name: Setup Remote Nix Cache
# uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # ratchet:cachix/cachix-action@v15
# with:
# name: "${{ inputs.cachixCacheName }}"
# authToken: "${{ inputs.cachixAuthToken }}"

- name: "Authenticate to Google Cloud"
uses: "google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c" # ratchet:google-github-actions/auth@v2
- name: Setup Remote Nix Cache
uses: cachix/cachix-action@ad2ddac53f961de1989924296a1f236fcfbaa4fc # ratchet:cachix/cachix-action@v15
with:
credentials_json: "${{ inputs.gacd }}"
name: "${{ inputs.cachixCacheName }}"
authToken: "${{ inputs.cachixAuthToken }}"

- name: Set up cache
uses: zombiezen/setup-nix-cache-action@cacc7abf0a6636b0ef45ec2ae055a9734cdd4122 # ratchet:zombiezen/setup-nix-cache-action@main
with:
substituters: "${{ inputs.nixSubstituterName }}"
secret_keys: "${{ inputs.nixPrivateKey }}"
use_nixcached: true
nixcached_upload_options: --jobs 8 --debug
# aws_access_key_id: "${{ inputs.gcsHmacAccessID }}"
# aws_secret_access_key: "${{ inputs.gcsHmacSecretAccessKey }}"
# - name: "Authenticate to Google Cloud"
# uses: "google-github-actions/auth@55bd3a7c6e2ae7cf1877fd1ccb9d54c0503c457c" # ratchet:google-github-actions/auth@v2
# with:
# credentials_json: "${{ inputs.gacd }}"

# - name: Set up cache
# uses: zombiezen/setup-nix-cache-action@cacc7abf0a6636b0ef45ec2ae055a9734cdd4122 # ratchet:zombiezen/setup-nix-cache-action@main
# with:
# substituters: "${{ inputs.nixSubstituterName }}"
# secret_keys: "${{ inputs.nixPrivateKey }}"
# use_nixcached: true
# nixcached_upload_options: --jobs 8 --debug
# # aws_access_key_id: "${{ inputs.gcsHmacAccessID }}"
# # aws_secret_access_key: "${{ inputs.gcsHmacSecretAccessKey }}"

- name: Set GitHub CI Slug Variables
uses: rlespinasse/github-slug-action@797d68864753cbceedc271349d402da4590e6302 # ratchet:rlespinasse/github-slug-action@v4
Expand Down

0 comments on commit da269ff

Please sign in to comment.