Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ on:
type: choice
options:
- terra-base
- terra-jupyter-aou

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋

- terra-jupyter-base
- terra-jupyter-bioconductor
- terra-jupyter-gatk
- terra-jupyter-hail
- terra-jupyter-python
- terra-jupyter-r
- terra-rstudio-aou
- wondershaper
default: terra-rstudio-rstudio
branch:
description: 'Branch to run the workflow on'
Expand All @@ -25,6 +22,9 @@ on:
jobs:
publish-job:
runs-on: self-hosted
env:
# Create a plain image, not an attestation manifest list.
BUILDX_NO_DEFAULT_ATTESTATIONS: 1
steps:
- name: Checkout current code
uses: actions/checkout@v3
Expand All @@ -40,19 +40,26 @@ jobs:
run: sudo rm -rf /usr/share/dotnet

- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v3
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
uses: google-github-actions/setup-gcloud@v3
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}

- name: Explicitly auth Docker for GCR
run: gcloud auth configure-docker --quiet

- name: Set up Docker Buildx
# driver: docker keeps build output in the local image store; the default
# docker-container driver would need --load and break the steps below.
uses: docker/setup-buildx-action@v4
with:
driver: docker

- name: Build Docker image and publish
run: |
gcloud auth configure-docker
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/publish_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
jobs:
publish-job:
runs-on: self-hosted
env:
# Create a plain image, not an attestation manifest list.
BUILDX_NO_DEFAULT_ATTESTATIONS: 1
steps:
- name: Checkout current code
uses: actions/checkout@v3
Expand All @@ -23,19 +26,26 @@ jobs:
python-version: '3.10'

- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v3
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
uses: google-github-actions/setup-gcloud@v3
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}

- name: Explicitly auth Docker for GCR
run: gcloud auth configure-docker --quiet

- name: Set up Docker Buildx
# driver: docker keeps build output in the local image store; the default
# docker-container driver would need --load and break the steps below.
uses: docker/setup-buildx-action@v4
with:
driver: docker

- name: Build Docker image and publish
run: |
gcloud auth configure-docker
Expand Down
125 changes: 0 additions & 125 deletions .github/workflows/test-terra-jupyter-aou.yml

This file was deleted.

17 changes: 15 additions & 2 deletions .github/workflows/test-terra-jupyter-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,18 @@ on:
- 'terra-jupyter-base/**'
- '.github/workflows/test-terra-jupyter-base.yml'

schedule:
# Nightly rebuild to catch rot, 30 minute cascade starting 2a ET
- cron: '0 6 * * *'

workflow_dispatch:
# Allows manually triggering of workflow on a selected branch via the GitHub Actions tab.
# GitHub blog demo: https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/.

env:
GOOGLE_PROJECT: ${{ secrets.GCP_PROJECT_ID }}
# Create a plain image, not an attestation manifest list.
BUILDX_NO_DEFAULT_ATTESTATIONS: 1

jobs:

Expand All @@ -53,16 +59,23 @@ jobs:
run: sudo rm -rf /usr/share/dotnet

- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v3
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
uses: google-github-actions/setup-gcloud@v3
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}

- name: Set up Docker Buildx
# driver: docker keeps build output in the local image store; the default
# docker-container driver would need --load and break the steps below.
uses: docker/setup-buildx-action@v4
with:
driver: docker

- name: Build Docker image and base images too, if needed
run: |
gcloud auth configure-docker
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/test-terra-jupyter-bioconductor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,17 @@ on:
- 'terra-jupyter-bioconductor/**'
- '.github/workflows/test-terra-jupyter-bioconductor.yml'

schedule:
- cron: '30 6 * * *'

workflow_dispatch:
# Allows manually triggering of workflow on a selected branch via the GitHub Actions tab.
# GitHub blog demo: https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/.

env:
GOOGLE_PROJECT: ${{ secrets.GCP_PROJECT_ID }}
# Create a plain image, not an attestation manifest list.
BUILDX_NO_DEFAULT_ATTESTATIONS: 1

jobs:

Expand All @@ -53,16 +58,23 @@ jobs:
run: sudo rm -rf /usr/share/dotnet

- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v3
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
uses: google-github-actions/setup-gcloud@v3
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}

- name: Set up Docker Buildx
# driver: docker keeps build output in the local image store; the default
# docker-container driver would need --load and break the steps below.
uses: docker/setup-buildx-action@v4
with:
driver: docker

- name: Build Docker image and base images too, if needed
run: |
gcloud auth configure-docker
Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/test-terra-jupyter-gatk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,17 @@ on:
- 'terra-jupyter-gatk/**'
- '.github/workflows/test-terra-jupyter-gatk.yml'

schedule:
- cron: '0 7 * * *'

workflow_dispatch:
# Allows manually triggering of workflow on a selected branch via the GitHub Actions tab.
# GitHub blog demo: https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/.

env:
GOOGLE_PROJECT: ${{ secrets.GCP_PROJECT_ID }}
# Create a plain image, not an attestation manifest list.
BUILDX_NO_DEFAULT_ATTESTATIONS: 1

jobs:

Expand All @@ -53,16 +58,23 @@ jobs:
run: sudo rm -rf /usr/share/dotnet

- id: auth
uses: google-github-actions/auth@v1
uses: google-github-actions/auth@v3
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
uses: google-github-actions/setup-gcloud@v3
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}

- name: Set up Docker Buildx
# driver: docker keeps build output in the local image store; the default
# docker-container driver would need --load and break the steps below.
uses: docker/setup-buildx-action@v4
with:
driver: docker

- name: Build Docker image and base images too, if needed
run: |
gcloud auth configure-docker
Expand Down Expand Up @@ -123,4 +135,3 @@ jobs:
--entrypoint="" \
terra-jupyter-gatk:smoke-test \
/bin/bash -c 'for nb in {terra-jupyter-python/tests,terra-jupyter-gatk/tests}/*ipynb ; do jupyter nbconvert --to html_embed --execute "${nb}" ; done'

Loading
Loading