2121 default : true
2222 iog :
2323 description : ' with iog libs: libsodium, libsecp256k1, libblst, ...'
24- type : boolean
24+ type : boolean # FIXME: this should rather be a 'string' that could be set to 'full' ...
2525 default : false
2626 iog-full :
2727 description : ' with full iog libs: libsodium, libsecp256k1, libblst, postgresql, R, ...'
@@ -120,7 +120,7 @@ jobs:
120120 # Likely, we consider using `-iog` as the default and do not generate other images.
121121 # Then the user choices left would be between native, `-windows` or `-js` target platforms,
122122 # and the GHC version (currently `ghc810` and `ghc96`).
123- if : ${{ contains(fromJSON('["x86_64-linux", "aarch64-linux"]'), inputs.platform) && contains(fromJson('["","-windows","-js"]'), inputs.target-platform) && contains(fromJson('["ghc810","ghc96"]'), inputs.compiler-nix-name) && !inputs.minimal }}
123+ if : ${{ contains(fromJSON('["x86_64-linux", "aarch64-linux"]'), inputs.platform) && contains(fromJson('["","-windows","-js"]'), inputs.target-platform) && contains(fromJson('["ghc810","ghc96"]'), inputs.compiler-nix-name) && !inputs.minimal && inputs.iog && !inputs.iog-full }}
124124 steps :
125125 - name : Checkout repository
126126 uses : actions/checkout@v3
@@ -137,7 +137,7 @@ jobs:
137137 with :
138138 context : .
139139 push : true
140- tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.platform }}.${{ inputs.compiler-nix-name }}${{ inputs.target-platform }}${{ inputs.iog-full || inputs.iog }}
140+ tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.platform }}.${{ inputs.compiler-nix-name }}${{ inputs.target-platform }}${{ ( inputs.iog-full && '-iog-full') || ( inputs.iog && '-iog') }}
141141 build-args : |
142142 PLATFORM=${{ inputs.platform }}
143143 TARGET_PLATFORM=${{ inputs.target-platform }}
0 commit comments