Skip to content

Commit c3fc392

Browse files
feat: allow custom runner
1 parent 330fd01 commit c3fc392

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

.github/workflows/sconify.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ on:
5555
type: string
5656
description: "Scontain Registry Username"
5757
required: true
58+
runner:
59+
type: string
60+
description: "Runner to use (overrides `runs-on`) ⚠️ the specified runner must feature Ubuntu OS and docker CE"
61+
default: "ubuntu-latest"
5862
secrets:
5963
docker-password:
6064
description: "Docker Registry Password or Token"
@@ -87,7 +91,7 @@ on:
8791

8892
jobs:
8993
build:
90-
runs-on: ubuntu-latest
94+
runs-on: ${{ inputs.runner }}
9195
env:
9296
FROM_IMAGE: ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}
9397
DEBUG_IMAGE: ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-debug-${{ inputs.sconify-version }}

sconify/README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,22 @@ The workflow performs the following actions:
2121

2222
## Workflow Inputs 🛠️
2323

24-
| **Input** | **Description** | **Required** | **Default** |
25-
| --------------------- | ------------------------------------------ | ------------ | ----------- |
26-
| **docker-username** | Docker Registry Username | Yes | - |
27-
| **scontain-username** | Scontain Registry Username | Yes | - |
28-
| **image-name** | Name of Docker Image to Sconify | Yes | - |
29-
| **image-tag** | Tag of Docker Image to Sconify | Yes | - |
30-
| **docker-registry** | Docker Registry of Docker Image to Sconify | No | docker.io |
31-
| **sconify-version** | Version of the Sconify Image to use | Yes | - |
32-
| **fs-dir** | File System Directory to Protect | Yes | - |
33-
| **binary** | Path to the Binary to Protect | Yes | - |
34-
| **command** | Command to Protect | Yes | - |
35-
| **heap** | Enclave Heap size | No | 1G |
36-
| **dlopen** | dlopen mode | No | 1 |
37-
| **sconify-debug** | Create Scone Debug image | No | true |
38-
| **sconify-prod** | Create Scone Production image | No | true |
24+
| **Input** | **Description** | **Required** | **Default** |
25+
| --------------------- | ------------------------------------------------------------------------------------------------ | ------------ | ------------- |
26+
| **docker-username** | Docker Registry Username | Yes | - |
27+
| **scontain-username** | Scontain Registry Username | Yes | - |
28+
| **image-name** | Name of Docker Image to Sconify | Yes | - |
29+
| **image-tag** | Tag of Docker Image to Sconify | Yes | - |
30+
| **docker-registry** | Docker Registry of Docker Image to Sconify | No | docker.io |
31+
| **sconify-version** | Version of the Sconify Image to use | Yes | - |
32+
| **fs-dir** | File System Directory to Protect | Yes | - |
33+
| **binary** | Path to the Binary to Protect | Yes | - |
34+
| **command** | Command to Protect | Yes | - |
35+
| **heap** | Enclave Heap size | No | 1G |
36+
| **dlopen** | dlopen mode | No | 1 |
37+
| **sconify-debug** | Create Scone Debug image | No | true |
38+
| **sconify-prod** | Create Scone Production image | No | true |
39+
| **runner** | Runner to use (overrides `runs-on`) ⚠️ the specified runner must feature Ubuntu OS and docker CE | No | ubuntu-latest |
3940

4041
### Secrets 🔐
4142

0 commit comments

Comments
 (0)