Skip to content

Commit

Permalink
add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
subwaystation committed Mar 23, 2021
1 parent a0805a7 commit 4af87a3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build_and_test_docker.yml
Original file line number Diff line number Diff line change
@@ -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"
24 changes: 24 additions & 0 deletions .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4af87a3

Please sign in to comment.