Skip to content

Commit fc75273

Browse files
committed
feat: Support pre-training and post-training callbacks in promote_docker_image workflow
1 parent 80646f7 commit fc75273

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/promote_docker_image.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ jobs:
4040
DAG_RUN_ID: ${{ github.event.client_payload.dag_run_id }}
4141
SHA: ${{ github.event.client_payload.sha }}
4242
GITHUB_RUN_ID: ${{ github.event.client_payload.github_run_id }}
43+
TEST_TYPE: ${{ github.event.client_payload.test_type }}
4344
run: |
4445
echo "================================"
4546
echo "Github Run ID: ${GITHUB_RUN_ID}"
4647
echo "DAG ID: ${DAG_ID}"
4748
echo "DAG Run ID: ${DAG_RUN_ID}"
4849
echo "Commit SHA: ${SHA}"
50+
echo "Test Type: ${TEST_TYPE}"
4951
echo "State: ${STATE}"
5052
echo "================================"
5153
@@ -66,16 +68,19 @@ jobs:
6668
tag_docker_image:
6769
name: Promote ${{ matrix.image_name }} Docker Image
6870
needs: handle_result
69-
if: needs.handle_result.result == 'success'
71+
if: needs.handle_result.result == 'success' && (github.event.client_payload.test_type == '' || github.event.client_payload.test_type == matrix.test_type)
7072
runs-on: linux-x86-n2-16-buildkit
7173
container: google/cloud-sdk:524.0.0
7274
strategy:
7375
fail-fast: false
7476
matrix:
75-
image_name:
76-
- maxtext_jax_nightly
77-
- maxtext_gpu_jax_nightly
78-
- maxtext_post_training_nightly
77+
include:
78+
- test_type: pre_training
79+
image_name: maxtext_jax_nightly
80+
- test_type: pre_training
81+
image_name: maxtext_gpu_jax_nightly
82+
- test_type: post_training
83+
image_name: maxtext_post_training_nightly
7984
steps:
8085
- name: Configure Docker
8186
run: gcloud auth configure-docker us-docker.pkg.dev,gcr.io -q

0 commit comments

Comments
 (0)