Skip to content

Commit

Permalink
build base 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-baumgartner committed May 1, 2024
1 parent 0a38687 commit de2ce49
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 35 deletions.
69 changes: 35 additions & 34 deletions .github/workflows/bert-models-cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,40 +50,41 @@ jobs:
# Note: when trying to run build_push-bert-base with other jobs below, an error is reported on line 90.
# However, when run on its own it works fine.

# build_push-bert-base:
# name: "build/push bluebert-base container image"
# runs-on: ubuntu-latest
# # Add "id-token" with the intended permissions.
# permissions:
# contents: "read"
# id-token: "write"
# env:
# IMAGE_NAME: bluebert-base
# DOCKERFILE: base.Dockerfile
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# - name: Authenticate to Google Cloud
# uses: google-github-actions/auth@v0
# with:
# workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER_LOCATION }}
# service_account: "${{ secrets.SERVICE_ACCOUNT }}@${{ secrets.GCE_PROJECT }}.iam.gserviceaccount.com"
# - name: 'Set up Cloud SDK'
# uses: 'google-github-actions/setup-gcloud@v1'
# with:
# version: '>= 363.0.0'
# - name: Configure Docker Authentication
# # if: contains(steps.changed-files.outputs.all_modified_files, env.DOCKERFILE)
# run: gcloud --quiet auth configure-docker
# - name: Set MODEL_VERSION env
# # if: contains(steps.changed-files.outputs.all_modified_files, env.DOCKERFILE)
# run: echo "MODEL_VERSION=$(grep 'BASE' MODEL_VERSIONS | cut -f 2 -d '=')" >> $GITHUB_ENV
# - name: Build Docker Image
# # if: contains(steps.changed-files.outputs.all_modified_files, env.DOCKERFILE)
# run: docker build --tag "gcr.io/$PROJECT_ID/$IMAGE_NAME:$MODEL_VERSION" -f ${{ env.DOCKERFILE }} .
# - name: Publish Docker Image to Google Container Registry
# # if: contains(steps.changed-files.outputs.all_modified_files, env.DOCKERFILE)
# run: docker push "gcr.io/$PROJECT_ID/$IMAGE_NAME:$MODEL_VERSION"
build_push-bert-base:
name: "build/push bluebert-base container image"
runs-on: ubuntu-latest
env:
IMAGE_NAME: bluebert-base
DOCKERFILE: base.Dockerfile
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
project_id: ${{ secrets.GCE_PROJECT }}
service_account: ${{ secrets.SERVICE_ACCOUNT }}
credentials_json: ${{ secrets.SERVICE_ACCOUNT_KEY }}
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'
with:
version: '>= 363.0.0'
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Configure Docker Authentication
run: gcloud --quiet auth configure-docker
- name: Set MODEL_VERSION env
run: echo "MODEL_VERSION=$(grep 'BASE' MODEL_VERSIONS | cut -f 2 -d '=')" >> $GITHUB_ENV
- name: Build Docker Image
run: docker build --tag "gcr.io/$PROJECT_ID/$IMAGE_NAME:$MODEL_VERSION" -f ${{ env.DOCKERFILE }} .
- name: Publish Docker Image to Google Container Registry
run: docker push "gcr.io/$PROJECT_ID/$IMAGE_NAME:$MODEL_VERSION"

# # ----------------------------------------------------------------------------------- #
# # ----------------------------------------------------------------------------------- #
Expand Down
2 changes: 1 addition & 1 deletion MODEL_VERSIONS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BASE=0.6.1
BASE=0.7
BL_CHEMICAL_TO_DISEASE_OR_PHENOTYPIC_FEATURE=0.1
BL_CHEMICAL_TO_GENE=0.1
BL_DISEASE_TO_PHENOTYPIC_FEATURE=0.1
Expand Down

0 comments on commit de2ce49

Please sign in to comment.