File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 3939 type : number
4040 default : 1
4141 description : " dlopen"
42- debug-only :
43- description : " Create Scone Debug image only"
44- default : false
42+ sconify-debug :
43+ description : " Create Scone Debug image (default true)"
44+ default : true
45+ type : boolean
46+ sconify-prod :
47+ description : " Create Scone Production image (default true)"
48+ default : true
4549 type : boolean
4650 secrets :
4751 docker-username :
5761 description : " Scontain Registry Password or Token"
5862 required : true
5963 scone-signing-key :
60- description : " Signing Key for Scone Production (not required with `debug-only : false`)"
64+ description : " Signing Key for Scone Production (not required with `sconify-prod : false`)"
6165 required : false
6266
6367jobs :
8589 run : docker pull registry.scontain.com/scone-production/iexec-sconify-image:${{ inputs.sconify-version }}
8690
8791 - name : Sconify Image Debug
92+ if : ${{ inputs.sconify-debug }}
8893 run : |
8994 docker run \
9095 --rm \
@@ -105,10 +110,11 @@ jobs:
105110 --command="${{ inputs.command }}"
106111
107112 - name : Push Debug Image
113+ if : ${{ inputs.sconify-debug }}
108114 run : docker push ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-debug-${{ inputs.sconify-version }}
109115
110116 - name : Sconify Image Prod
111- if : ${{ ! inputs.debug-only }}
117+ if : ${{ inputs.sconify-prod }}
112118 run : |
113119 mkdir -p $HOME/sig
114120 echo "${{ secrets.scone-signing-key }}" > $HOME/sig/enclave-key.pem
@@ -133,5 +139,5 @@ jobs:
133139 --scone-signer=/sig/enclave-key.pem
134140
135141 - name : Push Prod Image
136- if : ${{ ! inputs.debug-only }}
142+ if : ${{ inputs.sconify-prod }}
137143 run : docker push ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-prod-${{ inputs.sconify-version }}
You can’t perform that action at this time.
0 commit comments