-
Notifications
You must be signed in to change notification settings - Fork 9
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
45 changed files
with
174 additions
and
65 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,62 @@ | ||
# 1. Set your GitHub default branch to dev/develop | ||
# 2. In circleci project settings->advanced set: | ||
# - GitHub Status Updates (this should be on already) | ||
# - Only build pull requests | ||
# - Auto-cancel redundant builds | ||
# - Free and Open Source (this should be on already) | ||
# 3. If existing project with quay.io, remove the quay build triggers. | ||
# - as circleci is pushing the image | ||
# - reevaluate when/if quay.io adds ability to authenticate pulls | ||
|
||
version: 2.1 | ||
jobs: | ||
build: | ||
environment: | ||
IMAGE_NAME: quay.io/wtsicgp/pcap-core | ||
docker: | ||
- image: circleci/buildpack-deps:stretch | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- run: | ||
name: Build Docker image | ||
command: | | ||
set -e | ||
BRANCH_OR_TAG="${CIRCLE_TAG:-$CIRCLE_BRANCH}" | ||
CLEAN_BRANCH=$(echo $BRANCH_OR_TAG | tr / -) | ||
echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USER" --password-stdin | ||
echo "$QUAYIO_PASSWORD" | docker login -u "$QUAYIO_USER" --password-stdin quay.io | ||
docker build -t $IMAGE_NAME:$CLEAN_BRANCH . | ||
echo 'Verify program(s) from base image' | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH bam2bedgraph --version | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH bwjoin --version | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH bam2bw --version | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH bwcat --version | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH bam2bwbases --version | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH bg2bw --version | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH detectExtremeDepth --version | ||
echo 'Verify program(s) from this repo' | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH diff_bams --version | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH reheadSQ --version | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH bam_stats --version | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH mismatchQc --version | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH bwa_mem.pl --version | ||
docker run -t --rm $IMAGE_NAME:$CLEAN_BRANCH merge_or_mark.pl --version | ||
if [ "$CIRCLE_TAG" = "$BRANCH_OR_TAG" ]; then | ||
echo 'Pushing image' | ||
docker push $IMAGE_NAME:$CLEAN_BRANCH | ||
else | ||
echo "I am not a tag so not pushing image" | ||
fi | ||
workflows: | ||
version: 2.1 | ||
build_test: | ||
jobs: | ||
- build: | ||
context: | ||
- dockerhub-casmservice | ||
- quayio-casmservice | ||
filters: | ||
tags: | ||
only: /.+/ |
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 |
---|---|---|
|
@@ -10,3 +10,4 @@ | |
/setup.sh | ||
/prerelease.sh | ||
/blib | ||
*.code-workspace |
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 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
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
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
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
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
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
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.