-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
154 additions
and
124 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,71 @@ | ||
version: 2.1 | ||
jobs: | ||
build-test-push-job: | ||
docker: | ||
- image: circleci/buildpack-deps:stretch | ||
environment: | ||
IMAGE_NAME: quay.io/wtsicgp/dockstore-cgpmap | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- run: | ||
name: Build Docker image | ||
command: | | ||
set -e | ||
echo "Building Docker image" | ||
docker build -t test . | ||
- run: | ||
name: Validate CWL files | ||
command: | | ||
set -e | ||
echo "Validating CWL files" | ||
sudo apt-get -y install python3-pip | ||
pip3 install cwltool | ||
cwltool --validate Dockstore.cwl | ||
cwltool --validate cwls/cgpmap-bamBaiOut.cwl | ||
cwltool --validate cwls/cgpmap-bamCsiOut.cwl | ||
cwltool --validate cwls/cgpmap-cramOut.cwl | ||
- run: | ||
name: Verify inherited programs | ||
command: | | ||
set -e | ||
echo 'Verifying programs inherited from cgpbigwig' | ||
docker run --rm -t test bwjoin --version | ||
echo 'Verifying programs inherited from pcap-core' | ||
docker run --rm -t test bwa_mem.pl -version | ||
docker run --rm -t test bammarkduplicates2 --version | ||
docker run --rm -t test samtools --version | ||
docker run --rm -t test bash -c 'bwa 2>&1 | grep Version' | ||
- run: | ||
name: Verify programs | ||
command: | | ||
set -e | ||
echo 'Verify programs from dockstore-cgpmap' | ||
docker run --rm -t test ds-cgpmap.pl -h | ||
- run: | ||
name: Push image to quay.io | ||
command: | | ||
set -e | ||
BRANCH_OR_TAG="${CIRCLE_TAG:-$CIRCLE_BRANCH}" | ||
if [ "$CIRCLE_TAG" = "$BRANCH_OR_TAG" ]; then | ||
echo 'Pushing image' | ||
echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USER" --password-stdin | ||
echo "$QUAYIO_PASSWORD" | docker login -u "$QUAYIO_USER" --password-stdin quay.io | ||
CLEAN_BRANCH=$(echo $BRANCH_OR_TAG | tr / -) | ||
docker tag test ${IMAGE_NAME}:${CLEAN_BRANCH} | ||
docker push ${IMAGE_NAME}:${CLEAN_BRANCH} | ||
else | ||
echo "I am not a tag so not pushing image" | ||
fi | ||
workflows: | ||
version: 2.1 | ||
build-test-push-workflow: | ||
jobs: | ||
- build-test-push-job: | ||
context: | ||
- dockerhub-casmservice | ||
- quayio-casmservice | ||
filters: | ||
tags: | ||
only: /.+/ |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM quay.io/wtsicgp/pcap-core:5.4.0 | ||
FROM quay.io/wtsicgp/pcap-core:5.7.0 | ||
|
||
LABEL vendor="Cancer, Ageing and Somatic Mutation, Wellcome Trust Sanger Institute" | ||
LABEL maintainer="[email protected]" | ||
LABEL uk.ac.sanger.cgp.description="PCAP-core for dockstore.org" | ||
LABEL uk.ac.sanger.cgp.version="3.2.0" | ||
LABEL uk.ac.sanger.cgp.version="3.3.0" | ||
|
||
USER root | ||
|
||
|
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
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
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
Oops, something went wrong.