diff --git a/.github/workflows/build_and_test_docker.yml b/.github/workflows/build_and_test_docker.yml new file mode 100644 index 0000000..0bf32cb --- /dev/null +++ b/.github/workflows/build_and_test_docker.yml @@ -0,0 +1,13 @@ +on: [push] + +name: build and test docker image + +jobs: + build_and_test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag pgge + - name: Run a test on the DRB1-3123 dataset + run: docker run -it -v ${PWD}/data/:/data pgge "pgge -g "/data/HLA/DRB1-3123/*.consensus*.gfa" -f /data/HLA/DRB1-3123/DRB1-3123.fa -r /scripts/beehave.R -t 2 -o /data/HLA/DRB1-3123/pgge_docker -l 1000 -s 1000 -p 100" diff --git a/.github/workflows/publish_docker.yml b/.github/workflows/publish_docker.yml new file mode 100644 index 0000000..1b92d53 --- /dev/null +++ b/.github/workflows/publish_docker.yml @@ -0,0 +1,24 @@ +name: Publish container to github container registry + +# Documentation on the primary Action used here: https://github.com/marketplace/actions/publish-docker + +on: + push: + branches: + - master + +jobs: + publish_release: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@master + - name: Publish to Registry + uses: elgohr/Publish-Docker-Github-Action@master + with: + name: pangenome/pgge + username: subwaystation + password: ${{ secrets.PGGB_DOCKER_TOKEN }} + registry: ghcr.io + tags: "latest" + snapshot: true + \ No newline at end of file