Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEST splitting docker build from other jobs #232

Closed
wants to merge 3 commits into from
Closed
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
13 changes: 11 additions & 2 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build Docker

# Controls when the action will run.
# Controls when the action will run.
# Triggers the workflow for a pull request for
# dev when the Dockerfile file changes.
on:
Expand All @@ -17,7 +17,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v1
with:
registry: pgc-images.sbgenomics.com
username: ${{ secrets.DOCKER_HUB_USERNAME }}
Expand All @@ -27,5 +27,14 @@ jobs:
uses: docker/build-push-action@v2
with:
push: false
context: .
file: ./Dockerfile
tags: myimage:latest
outputs: type=docker,dest=/tmp/myimage.tar
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: myimage
path: /tmp/myimage.tar
36 changes: 25 additions & 11 deletions .github/workflows/run-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,42 @@ name: Run Analysis
on:
workflow_dispatch:
pull_request:
branches: [ dev ]

jobs:
build_and_run:
build_and_download_data:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
name: Checkout repo

# Build docker container and download testing data
- name: Build container and download data
uses: ./
id: download-data
with:
args: OPENPBTA_URL=https://s3.amazonaws.com/d3b-openaccess-us-east-1-prd-pbta/data OPENPBTA_RELEASE=testing bash download-data.sh
args: OPENPEDCAN_URL=https://s3.amazonaws.com/d3b-openaccess-us-east-1-prd-pbta/open-targets OPENPEDCAN_RELEASE=testing bash download-data.sh

- name: Run 01-create-interaction-plots in container
uses: ./
id: create-interaction-plots
with:
args: OPENPBTA_ALL=0 bash analyses/interaction-plots/01-create-interaction-plots.sh
run_analysis:
runs-on: ubuntu-18.04
needs: build_and_download_data
steps:

- name: Run RUN-telomerase-activity-prediction in container
uses: ./
id: RUN-telomerase-activity-prediction
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Download artifact
uses: actions/download-artifact@v2
with:
args: bash analyses/telomerase-activity-prediction/RUN-telomerase-activity-prediction.sh
name: myimage
path: /tmp

- name: Load Docker image
run: |
docker load --input /tmp/myimage.tar
docker image ls -a

- name: Run Molecular Subtyping - MB
id: RUN-molecular-subtyping-MB
run: |
OPENPBTA_SUBSET=0 bash analyses/molecular-subtyping-MB/run-molecular-subtyping-mb.sh
4 changes: 2 additions & 2 deletions scripts/run-analysis.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
#!/bin/bash

sh -c "$*"
bash -c "$*"