Skip to content

Commit

Permalink
combine workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ydshieh committed Feb 27, 2024
1 parent 0e5bccb commit ae6ffb0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,20 @@ on:
jobs:
build-push-image:
uses: ./.github/workflows/build_push_image.yml
secrets: inherit
with:
region: us-central1
dockerfile_path: ${{ inputs.dockerfile_path }}
docker_image_tag: ${{ inputs.docker_image_tag }}
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
secrets: inherit
with:
region: us-central1
docker_image_tag: ${{ inputs.docker_image_tag }}
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 }}
4 changes: 0 additions & 4 deletions .github/workflows/build_push_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ on:
description: 'GCP Project ID'
type: string
required: true
secrets:
GCP_SERVICE_ACCOUNT_JSON_KEY:
description: 'Service Account'
required: true

jobs:
build-push-image:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/run_build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
build-push-image:
uses: ./.github/workflows/build_and_test.yml
secrets: inherit
with:
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
4 changes: 0 additions & 4 deletions .github/workflows/test_model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ on:
description: 'GCP Project ID'
type: string
required: true
secrets:
GCP_SERVICE_ACCOUNT_JSON_KEY:
description: 'Service Account'
required: true

env:
HF_HOME: /mnt/cache
Expand Down

0 comments on commit ae6ffb0

Please sign in to comment.