Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cicd: add publish action #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: publish to GHCR
on:
release:
types: [published]
jobs:
publish-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: gks-anvil
password: ${{ secrets.GHCR_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/gks-anvil/vrsix-workflow:latest
3 changes: 1 addition & 2 deletions containers/base/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# TODO python version
from circleci/python:3.12
FROM cimg/python:3.12

RUN pip install vrsix~=0.1.2

Expand Down
245 changes: 245 additions & 0 deletions test/GIAB_sample_annotated.vcf

Large diffs are not rendered by default.

Binary file added test/test_index_input.db
Binary file not shown.
4 changes: 4 additions & 0 deletions test/test_inputs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"vrsix_construct.vcf_path": "test/test_vcf_input.vcf",
"vrsix_construct.index_db_path": "test/test_index_input.db"
}
Empty file added test/test_vcf_input.vcf
Empty file.
6 changes: 3 additions & 3 deletions vrsix-construct.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ workflow vrsix_construct {
author: "GKS-AnVIL"
description: "Extract VRS variation annotations from a VCF and load them into a vrsix index database."
outputs: {
updated_db_path: "Path to updated index database."
updated_db_path: "Path to updated index database.",
}
}

Expand Down Expand Up @@ -33,7 +33,7 @@ task vrsix {
meta {
description: "Load VCF into index database."
outputs: {
updated_db_path: "Path to updated index database."
updated_db_path: "Path to updated index database.",
}
}

Expand All @@ -58,7 +58,7 @@ task vrsix {
}

runtime {
docker: "ubuntu@sha256:foobar" # TODO update
docker: "ghcr.io/gks-anvil/vrsix-workflow:latest"
disks: "local-disk" + disk_size + " SSD"
bootDiskSizeGb: disk_size
memory: "8G"
Expand Down