Skip to content

Commit 95b4f91

Browse files
committed
version bump plus some new CI to auto-push a new image to docker hub with each release tag
1 parent 6c9cfa2 commit 95b4f91

File tree

7 files changed

+43
-9
lines changed

7 files changed

+43
-9
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,3 +150,36 @@ jobs:
150150
echo "🔗 Release URL: https://github.com/${{ github.repository }}/releases/tag/${{ steps.version.outputs.tag }}"
151151
echo ""
152152
echo "📦 Source archives are automatically attached by GitHub."
153+
154+
docker:
155+
name: Push Docker Image
156+
runs-on: ubuntu-latest
157+
needs: release
158+
if: ${{ !contains(github.ref, '-') }}
159+
160+
steps:
161+
- name: Checkout code
162+
uses: actions/checkout@v4
163+
164+
- name: Extract version from tag
165+
id: version
166+
run: |
167+
VERSION=${GITHUB_REF#refs/tags/v}
168+
echo "version=$VERSION" >> $GITHUB_OUTPUT
169+
170+
- name: Set up Docker Buildx
171+
uses: docker/setup-buildx-action@v3
172+
173+
- name: Log in to Docker Hub
174+
uses: docker/login-action@v3
175+
with:
176+
username: ${{ secrets.DOCKERHUB_USERNAME }}
177+
password: ${{ secrets.DOCKERHUB_TOKEN }}
178+
179+
- name: Build and push
180+
uses: docker/build-push-action@v6
181+
with:
182+
context: .
183+
file: ./Containerfile
184+
push: true
185+
tags: nrminor/oneroof:${{ steps.version.outputs.version }}

Containerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,5 @@ COPY bin/find_and_trim_amplicons.rs $HOME/bin/find_and_trim_amplicons.rs
7979
RUN cd $HOME && \
8080
export PATH="$HOME/.pixi/envs/default/bin:$PATH" && \
8181
RUSTFLAGS="-C target-cpu=native" cargo build --release && \
82-
cp $HOME/target/release/find_and_trim_amplicons $HOME/.pixi/envs/default/bin/
82+
cp $HOME/target/release/find_and_trim_amplicons $HOME/.pixi/envs/default/bin/ && \
83+
rm -rf $HOME/target

main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ workflow {
2626
alignment and variant-calling, variant-effect annotation, consensus
2727
sequence calling, quality reporting, and phylogenetic tree-building, all
2828
under "one roof."
29-
(version 0.1.0)
29+
(version 2.2.1)
3030
=========================================================================
3131
"""
3232
.stripIndent()

nextflow.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ profiles {
261261
singularity.enabled = false
262262
conda.enabled = false
263263

264-
process.container = "nrminor/dorado-and-friends:v0.2.3"
264+
process.container = "nrminor/oneroof:2.2.1"
265265
}
266266

267267
docker {
@@ -270,7 +270,7 @@ profiles {
270270
singularity.enabled = false
271271
conda.enabled = false
272272

273-
process.container = "nrminor/dorado-and-friends:v0.2.3"
273+
process.container = "nrminor/oneroof:2.2.1"
274274
}
275275

276276
singularity {
@@ -279,7 +279,7 @@ profiles {
279279
docker.enabled = false
280280
conda.enabled = false
281281

282-
process.container = "docker://nrminor/dorado-and-friends:v0.2.3"
282+
process.container = "docker://nrminor/oneroof:2.2.1"
283283
}
284284

285285
apptainer {

pixi.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "oneroof"
3-
version = "2.0.0"
3+
version = "2.2.1"
44
description = "Base-, Variant-, and Consensus-calling under One Proverbial Roof."
55
authors = [
66
{ name = "Nicholas R. Minor", email = "nrminor@wisc.edu" },

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)