Skip to content

Commit

Permalink
incl. docker release
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasrausch committed Jun 27, 2024
1 parent b6fcb1a commit aa32dff
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 4 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Docker image

on:
release:
types: [published]

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: trausch/vc

- name: Build and push Docker image
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
22 changes: 18 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
# use the ubuntu base image
FROM ubuntu:18.04
FROM ubuntu:22.04

# maintainer
MAINTAINER Tobias Rausch rausch@embl.de

# install required apt packages
RUN apt-get update && apt-get install -yq \
RUN apt-get update && apt-get install -y \
autoconf \
build-essential \
curl \
g++ \
git \
cmake \
gthumb \
python \
libcurl4-gnutls-dev \
libboost-date-time-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-filesystem-dev \
libboost-iostreams-dev \
libbz2-dev \
libdeflate-dev \
libhdf5-dev \
libncurses-dev \
liblzma-dev \
python3 \
datamash \
gthumb \
pkg-config \
wget \
&& apt-get clean
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# install tutorial tools
RUN cd /opt \
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[![Docker CI](https://github.com/tobiasrausch/vc/workflows/Docker%20CI/badge.svg)](https://hub.docker.com/r/trausch/vc/)
[![GitHub license](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://github.com/tobiasrausch/vc/blob/master/LICENSE)
[![GitHub Releases](https://img.shields.io/github/release/tobiasrausch/vc.svg)](https://github.com/tobiasrausch/vc/releases)

# Structural variant calling tutorial using [delly](https://github.com/dellytools/delly).

## Installation - Linux
Expand Down

0 comments on commit aa32dff

Please sign in to comment.