-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IA-4760] new GHA to replace last jenkins job (#493)
* new GHA to replace jenkins job * also do a manual workflow trigger for debugging purposes later
- Loading branch information
Showing
6 changed files
with
70 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build and publish all images to GCR | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'Branch to run the workflow on' | ||
required: false | ||
default: 'master' | ||
|
||
jobs: | ||
publish-job: | ||
runs-on: self-hosted | ||
steps: | ||
- name: Checkout current code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- id: auth | ||
uses: google-github-actions/auth@v1 | ||
with: | ||
credentials_json: ${{ secrets.TD_GCP_SA_KEY }} | ||
create_credentials_file: true | ||
|
||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v0.3.0 | ||
with: | ||
project_id: ${{ secrets.GCP_PROJECT_ID }} | ||
|
||
- name: Explicitly auth Docker for GCR | ||
run: gcloud auth configure-docker --quiet | ||
|
||
- name: Build Docker image and publish | ||
run: | | ||
gcloud auth configure-docker | ||
./build_all.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
# Run `gcloud auth configure-docker --quiet` before running this script | ||
# Example: ./build_all.sh | ||
|
||
# Create the ordered list of images to build | ||
# 1- terra-jupyter-base | ||
# 2- terra-jupyter-python | ||
# 3- terra-jupyter-r | ||
# 4- terra-jupyter-gatk | ||
# 5- terra-jupyter-hail | ||
# 6- terra-jupyter-aou | ||
# 7- terra-jupyter-bioconductor | ||
# 8- terra-rstudio-aou | ||
# 9- wondershaper | ||
images=(terra-jupyter-base terra-jupyter-python terra-jupyter-r terra-jupyter-gatk terra-jupyter-hail terra-jupyter-aou terra-jupyter-bioconductor terra-rstudio-aou wondershaper) | ||
|
||
# Loop over each image to build in the correct order | ||
for image in images; do | ||
# Call build.sh with the image to build | ||
echo 'Building and publishing the following image to GCR: $image' | ||
./build.sh "$image" "true" | ||
done | ||
|
||
# Once all images have been built, generate and push the 'terra-docker-versions-new' doc | ||
python scripts/generate_version_docs.py |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.