Skip to content

Commit efad6cb

Browse files
committed
- Updated Dockerfile
- Migrated tests to github actions - Updated environment.yml for conda. - Fixed issues #12,#14,#15,#17. Cases with no plasmids or too many. Relative paths in html images.
2 parents 19f622f + ebfe35d commit efad6cb

35 files changed

+273
-5096
lines changed

.circleci/config.yml

-318
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: deploy release
2+
# This builds the docker image and pushes it to DockerHub
3+
on:
4+
release:
5+
types: [published]
6+
jobs:
7+
push_dockerhub:
8+
name: Push new Docker image to Docker Hub (release)
9+
runs-on: ubuntu-latest
10+
# Only run for the official repo, for releases and merged PRs
11+
if: ${{ github.repository == 'BU-ISCIII/plasmidID' }}
12+
env:
13+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
14+
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASSWORD }}
15+
steps:
16+
- name: Check out pipeline code
17+
uses: actions/checkout@v2
18+
19+
- name: Build new docker image
20+
run: docker build --no-cache . -t buisciii/plasmidid:${{ github.event.release.tag_name }}
21+
22+
- name: Push Docker image to DockerHub (develop)
23+
run: |
24+
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
25+
docker push buisciii/plasmidid:${{ github.event.release.tag_name }}

.github/workflows/tests.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: tests ci
2+
# This workflow runs the pipeline with the minimal test dataset to check that it completes any errors
3+
on:
4+
push:
5+
branches: [develop]
6+
pull_request_target:
7+
branches: [develop]
8+
release:
9+
types: [published]
10+
11+
jobs:
12+
push_dockerhub:
13+
name: Push new Docker image to Docker Hub (dev)
14+
runs-on: ubuntu-latest
15+
# Only run for the official repo, for releases and merged PRs
16+
if: ${{ github.repository == 'BU-ISCIII/plasmidID' }}
17+
env:
18+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
19+
DOCKERHUB_PASS: ${{ secrets.DOCKERHUB_PASSWORD }}
20+
steps:
21+
- name: Check out pipeline code
22+
uses: actions/checkout@v2
23+
24+
- name: Build new docker image
25+
run: docker build --no-cache . -t buisciii/plasmidid:dev
26+
27+
- name: Push Docker image to DockerHub (develop)
28+
run: |
29+
echo "$DOCKERHUB_PASS" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
30+
docker push buisciii/plasmidid:dev
31+
run-tests:
32+
name: Run tests
33+
needs: push_dockerhub
34+
runs-on: ubuntu-latest
35+
steps:
36+
- name: Run pipeline with test data
37+
run: |
38+
docker run buisciii/plasmidid:dev bash /opt/plasmidID/test/test.sh

.gitmodules

-3
This file was deleted.

0 commit comments

Comments
 (0)