Skip to content

Commit

Permalink
Pass SUNBEAM_VER from workflow to Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulthran committed Apr 1, 2024
1 parent d27b6a1 commit a3368c5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ jobs:
push: true
tags: sunbeamlabs/sunbeam:latest, sunbeamlabs/sunbeam:${{ steps.get_version.outputs.version-without-v }}
labels: ${{ steps.meta.outputs.labels }}
build-args: "SUNBEAM_VER=${{ steps.get_version.outputs.version-without-v }}"

- name: Build and push slim Docker image
uses: docker/build-push-action@v5
Expand All @@ -69,6 +70,7 @@ jobs:
push: true
tags: sunbeamlabs/sunbeam:${{ steps.get_version.outputs.version-without-v }}-slim
labels: ${{ steps.meta.outputs.labels }}
build-args: "SUNBEAM_VER=${{ steps.get_version.outputs.version-without-v }}"

push-cutadapt-dockerhub:
name: Push cutadapt env to Dockerhub
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM condaforge/mambaforge:latest

# Setup
WORKDIR /home/sunbeam
ARG SUNBEAM_VER

RUN mkdir -p etc/
COPY etc/* etc/
Expand All @@ -26,7 +27,7 @@ RUN ./install.sh -e sunbeam -v

ENV PATH="/opt/conda/envs/sunbeam/bin/:${PATH}"
ENV SUNBEAM_DIR="/home/sunbeam"
ENV SUNBEAM_VER="4.4.0"
ENV SUNBEAM_VER ${SUNBEAM_VER}
ENV SUNBEAM_MIN_MEM_MB="8000"
ENV SUNBEAM_MIN_RUNTIME="60"

Expand Down
3 changes: 2 additions & 1 deletion slim.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM condaforge/mambaforge:latest

# Setup
WORKDIR /home/sunbeam
ARG SUNBEAM_VER

RUN mkdir -p etc/
COPY etc/* etc/
Expand All @@ -26,7 +27,7 @@ RUN ./install.sh -e sunbeam -v

ENV PATH="/opt/conda/envs/sunbeam/bin/:${PATH}"
ENV SUNBEAM_DIR="/home/sunbeam"
ENV SUNBEAM_VER="4.4.0"
ENV SUNBEAM_VER ${SUNBEAM_VER}
ENV SUNBEAM_MIN_MEM_MB="8000"
ENV SUNBEAM_MIN_RUNTIME="60"

Expand Down

0 comments on commit a3368c5

Please sign in to comment.