Skip to content

Commit aef65ab

Browse files
committed
updated build-template workflow
1 parent 31669b0 commit aef65ab

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

.github/workflows/build_template.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@ on:
55
secrets:
66
E2B_API_KEY:
77
required: true
8+
E2B_ACCESS_TOKEN:
9+
required: true
10+
DOCKERHUB_USERNAME:
11+
required: true
12+
inputs:
813
E2B_DOMAIN:
914
required: false
15+
type: string
1016
E2B_TEMPLATE_CONFIG:
11-
required: false
17+
required: true
18+
type: string
1219

1320
permissions:
1421
contents: read
@@ -56,5 +63,5 @@ jobs:
5663
working-directory: ./template
5764
env:
5865
E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN }}
59-
E2B_DOMAIN: ${{ secrets.E2B_DOMAIN }}
66+
E2B_DOMAIN: ${{ vars.E2B_DOMAIN }}
6067
E2B_TEMPLATE_CONFIG: ${{ secrets.E2B_TEMPLATE_CONFIG }}

.github/workflows/pull_request.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
uses: ./.github/workflows/build_template.yml
1919
secrets:
2020
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
21+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
22+
with:
2123
E2B_DOMAIN: ${{ vars.E2B_DOMAIN }}
2224
E2B_TEMPLATE_CONFIG: ${{ vars.E2B_TEMPLATE_CONFIG }}
2325
js-sdk:

.github/workflows/python_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ jobs:
5050
run: poetry run pytest --verbose -x
5151
env:
5252
E2B_API_KEY: ${{ secrets.E2B_API_KEY }}
53-
E2B_DOMAIN: ${{ secrets.E2B_DOMAIN }}
53+
E2B_DOMAIN: ${{ vars.E2B_DOMAIN }}
5454
E2B_CI_TEMPLATE: ${{ vars.E2B_CI_TEMPLATE }}

0 commit comments

Comments
 (0)