@@ -51,14 +51,37 @@ jobs:
51
51
strategy :
52
52
fail-fast : false
53
53
matrix :
54
- jobs : ${{ fromJson(needs.discover.outputs.matrix) }}
55
- name : Process Jobs for ${{ inputs.platform }}
54
+ job : ${{ fromJson(needs.discover.outputs.matrix) }}
55
+ name : Container Upload for ${{ matrix.job.config }}
56
+ permissions :
57
+ contents : read
58
+ packages : write
56
59
steps :
57
- - name : Call Container Upload Workflow
58
- uses : ./.github/workflows/container-upload.yml
60
+ - name : Free Disk Space (Ubuntu)
61
+ uses : jlumbroso/free-disk-space@main
62
+ - name : Install Nix with good defaults
63
+ uses : cachix/install-nix-action@v20
59
64
with :
60
- platform : ${{ inputs.platform }}
61
- jobs : ${{ matrix.jobs }}
65
+ extra_nix_config : |
66
+ trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= loony-tools:pr9m4BkM/5/eSTZlkQyRt57Jz7OMBxNSUiMC4FkcNfk=
67
+ substituters = https://cache.iog.io/ https://cache.zw3rk.com/ https://cache.nixos.org/
68
+ nix_path : nixpkgs=channel:nixos-unstable
69
+ - name : Checkout repository
70
+ uses : actions/checkout@v4
71
+ - name : Log in to the Container registry
72
+
73
+ with :
74
+ registry : ${{ env.REGISTRY }}
75
+ username : ${{ github.actor }}
76
+ password : ${{ secrets.GITHUB_TOKEN }}
77
+ - name : Compute and upload closure and developer environment to ghcr.io
78
+ env :
79
+ DEV_SHELL : ${{ matrix.job.config }}
80
+ SHELL_NIX_PATH : ${{ matrix.job.build_path }}
81
+ NIX_STORE_SECRET_KEY : ${{ secrets.SECRET_KEY }}
82
+ run : ./extra/ghcr-upload.sh
83
+
84
+
62
85
63
86
# codespace-upload:
64
87
# env:
0 commit comments