Skip to content

Commit c2e4650

Browse files
committed
build: configure S3 cache once
1 parent fd1a153 commit c2e4650

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/nix.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ concurrency:
2828

2929
env:
3030
ECR_REGISTRY: 432820653916.dkr.ecr.eu-central-1.amazonaws.com
31+
S3_CACHE: s3://iog-catalyst-nix-cache?region=eu-central-1
3132

3233
jobs:
3334
discover:
@@ -65,7 +66,7 @@ jobs:
6566
nix_key: ${{ secrets.NIX_SIGNING_KEY }}
6667
s3_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
6768
s3_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
68-
cache: s3://iog-catalyst-nix-cache?region=eu-central-1
69+
cache: ${{ env.S3_CACHE }}
6970
build-packages:
7071
if: always()
7172
needs:
@@ -86,7 +87,7 @@ jobs:
8687
nix_key: ${{ secrets.NIX_SIGNING_KEY }}
8788
s3_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
8889
s3_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
89-
cache: s3://iog-catalyst-nix-cache?region=eu-central-1
90+
cache: ${{ env.S3_CACHE }}
9091
build-devshells:
9192
if: always()
9293
needs:
@@ -107,4 +108,4 @@ jobs:
107108
nix_key: ${{ secrets.NIX_SIGNING_KEY }}
108109
s3_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
109110
s3_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
110-
cache: s3://iog-catalyst-nix-cache?region=eu-central-1
111+
cache: ${{ env.S3_CACHE }}

0 commit comments

Comments
 (0)