Skip to content

Commit 866f092

Browse files
author
mike dupont
committed
on push as well
1 parent bb680ef commit 866f092

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/run-docker-tests.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: run Perf Test and collect data
2-
2+
env:
3+
default_image: "ghcr.io/meta-introspector/o1js/o1js-perf-recording:latest"
34
on:
45
workflow_dispatch:
56
inputs:
67
image_url:
78
description: 'Docker url to execute'
89
#default: "ghcr.io/meta-introspector/o1js/o1js-perf-recording:5ce0221662cecbca9a3de05601af94a15b154a3bcf8bafcb0cfa1f5b9f407bdc"
9-
default: ghcr.io/meta-introspector/o1js/o1js-perf-recording:latest
10+
default: ${{ env.default_image }}
1011
push:
11-
branches: [ "collect-perf" ]
12+
branches: [ "feature/just_test" ]
1213
pull_request:
1314
branches: [ "collect-perf" ]
1415
jobs:
@@ -27,13 +28,12 @@ jobs:
2728
password: ${{ secrets.GITHUB_TOKEN }}
2829

2930
- name: pull the image
30-
run: docker pull ${{ inputs.image_url }}
31+
run: docker pull ${{ inputs.image_url || env.default_image }}
3132

3233
- name: run the Docker tests
3334
run: docker compose up mina-local-network
3435
env:
35-
DOCKER_IMAGE_URL: ${{ inputs.image_url }}
36-
36+
DOCKER_IMAGE_URL: ${{ inputs.image_url || env.default_image}}
3737

3838
- name: docker cp results
3939
run: docker compose cp mina-local-network:/tmp/perf.data.tar.gz perf.data.tar.gz

0 commit comments

Comments
 (0)