Skip to content

Commit dbd784b

Browse files
refactor: change sconify options
1 parent 736f233 commit dbd784b

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/sconify.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,13 @@ on:
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:
@@ -57,7 +61,7 @@ on:
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

6367
jobs:
@@ -85,6 +89,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)