Skip to content

Commit

Permalink
Add step to publish apptainer image
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbradley committed Aug 27, 2024
1 parent d005716 commit 2fee9a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/deploy-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,12 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: "PYBIOCLIP_VERSION=${{ steps.meta.outputs.version }}"

- uses: eWaterCycle/setup-apptainer@v2
with:
apptainer-version: 1.3.3
- name: print stuff
run: echo "${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
- name: pull an apptainer container
run: apptainer pull apptainer.sif docker://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}
- name: push the apptainer container
run: apptainer push apptainer.sif oras://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.meta.outputs.version }}
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
FROM condaforge/miniforge3:24.3.0-0

#RUN conda install pytorch torchvision torchaudio pytorch-cuda=12.4 -c pytorch -c nvidia -y && \
# conda clean --all -y

ARG PYBIOCLIP_VERSION

# Install pybioclip from the release archive because pypi can take a while to start working.
Expand Down

0 comments on commit 2fee9a3

Please sign in to comment.