Skip to content

Commit

Permalink
ci: Working on schedulers
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr0p42 committed Jul 31, 2024
1 parent 3e5f91e commit 4f7f262
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/generate_schedulers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pull Docker image
run: docker pull ghcr.io/jupyter-naas/abi/abi:latest
run: docker pull ghcr.io/${{ github.repository }}/abi:latest
# - name: Run Papermill
# run: |
# docker run --name abi-execution -i --platform linux/amd64 ghcr.io/jupyter-naas/abi/abi:latest ls
# docker run --name abi-execution -i --platform linux/amd64 ghcr.io/${{ github.repository }}/abi:latest ls
# mkdir output
# docker cp abi-execution:/app/__pipeline__.ipynb ./output/__pipeline__.ipynb
Expand Down Expand Up @@ -62,7 +62,7 @@ def generate_schedulers(config : dict, template : str):
export SCHEDULER_ID=$(python -c "import uuid; print(uuid.uuid4())")
# Execute the Scheduler script
docker run --name $SCHEDULER_ID -i --platform linux/amd64 ghcr.io/jupyter-naas/abi/abi:latest python .github/scripts/run_scheduler.py "{scheduler['name']}"
docker run --name $SCHEDULER_ID -i --platform linux/amd64 ghcr.io/${{ github.repository }}/abi:latest python .github/scripts/run_scheduler.py "{scheduler['name']}"
# Create the output directory that will be used to store the output files and save them as artifacts.
mkdir -p outputs/
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/scheduler__main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
- name: Pull Docker image
run: docker pull ghcr.io/jupyter-naas/abi/abi:latest
run: docker pull ghcr.io/${{ github.repository }}/abi:latest
- name: main
run: '
Expand All @@ -22,8 +22,8 @@ jobs:
# Execute the Scheduler script
docker run --name $SCHEDULER_ID -i --platform linux/amd64 ghcr.io/jupyter-naas/abi/abi:latest
python .github/scripts/run_scheduler.py "main"
docker run --name $SCHEDULER_ID -i --platform linux/amd64 ghcr.io/${ github.repository
}/abi:latest python .github/scripts/run_scheduler.py "main"
# Create the output directory that will be used to store the output files
Expand Down

0 comments on commit 4f7f262

Please sign in to comment.