File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Container Upload Workflow
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ platform :
7+ required : true
8+ type : string
9+ jobs :
10+ required : true
11+ type : string # Expecting a JSON string representing the jobs array
12+
13+ jobs :
14+ upload-jobs :
15+ name : Container Upload for ${{ inputs.platform }}
16+ runs-on : ubuntu-latest
17+ strategy :
18+ fail-fast : false
19+ matrix :
20+ job : ${{ fromJson(inputs.jobs) }} # Matrix based on the jobs input
21+ permissions :
22+ contents : read
23+ packages : write
24+ steps :
25+ - name : Free Disk Space (Ubuntu)
26+ uses : jlumbroso/free-disk-space@main
27+
28+ - name : Install Nix with good defaults
29+ uses : cachix/install-nix-action@v20
30+ with :
31+ extra_nix_config : |
32+ 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=
33+ substituters = https://cache.iog.io/ https://cache.zw3rk.com/ https://cache.nixos.org/
34+ nix_path : nixpkgs=channel:nixos-unstable
35+ - name : Checkout repository
36+ uses : actions/checkout@v4
37+ - name : Log in to the Container registry
38+ 39+ with :
40+ registry : ${{ env.REGISTRY }}
41+ username : ${{ github.actor }}
42+ password : ${{ secrets.GITHUB_TOKEN }}
43+ - name : Upload Container for Job ${{ matrix.job }}
44+ - name : Compute and upload closure and developer environment to ghcr.io
45+ env :
46+ DEV_SHELL : ${{ matrix.job.config }}
47+ SHELL_NIX_PATH : ${{ matrix.job.build_path }}
48+ NIX_STORE_SECRET_KEY : ${{ secrets.SECRET_KEY }}
49+ run : ./extra/ghcr-upload.sh
You can’t perform that action at this time.
0 commit comments