Skip to content

combine workflows

combine workflows #3

name: Build images and run tests
on:
push:
branches:
- build_images_and_run_tests_*
jobs:
build-push-image:
uses: ./.github/workflows/build-push-image.yml
with:
region: us-central1
dockerfile_path: ./containers/pytorch/training/gpu/2.1/transformers/4.38.1/py310/Dockerfile
docker_image_tag: huggingface-pytorch-training-gpu-2.1.transformers.4.38.1.py310:latest
gcp_artifact_registry_repository: deep-learning-images
GCP_PROJECT_ID: ${{ vars.GCP_PROJECT_ID }}
secrets:
GCP_SERVICE_ACCOUNT_JSON_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON_KEY }}
model_test:
needs: build-push-image
uses: ./.github/workflows/test_model.yml
with:
region: us-central1
docker_image_tag: huggingface-pytorch-training-gpu-2.1.transformers.4.38.1.py310:latest
gcp_artifact_registry_repository: deep-learning-images
GCP_PROJECT_ID: ${{ vars.GCP_PROJECT_ID }}
secrets:
GCP_SERVICE_ACCOUNT_JSON_KEY: ${{ secrets.GCP_SERVICE_ACCOUNT_JSON_KEY }}