Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
paulstretenowich committed Oct 29, 2024
1 parent 07daf05 commit 5232bfc
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:

# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
jobs:
build-and-push-image:
build-and-push-docker:
runs-on: ubuntu-latest

# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
Expand Down Expand Up @@ -67,28 +67,6 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Build and push Apptainer image
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
steps:
- uses: actions/checkout@v4
- uses: eWaterCycle/setup-apptainer@v2
with:
apptainer-version: 1.3.4
- name: Create sif image
run: |
apptainer build -F container/wrapper_genpipes/images/genpipes-${{ env.TAG_NAME }}.sif docker-daemon://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }}
cd container/wrapper_genpipes/images/
ln -sf genpipes-${{ env.TAG_NAME }}.sif genpipes.sif
cd ../../
tar -zcvf wrapper_genpipes.tgz wrapper_genpipes
- name: Upload sif image
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: container/wrapper_genpipes.tgz
asset_name: wrapper_genpipes.tgz
tag: ${{ github.ref }}
overwrite: true

# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built.
# It increases supply chain security for people who consume the image.
Expand All @@ -99,3 +77,27 @@ jobs:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

build-and-push-apptainer:
runs-on: ubuntu-latest
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
steps:
- uses: actions/checkout@v4
- uses: eWaterCycle/setup-apptainer@v2
with:
apptainer-version: 1.3.4
- name: Create sif image
run: |
apptainer build -F container/wrapper_genpipes/images/genpipes-${{ env.TAG_NAME }}.sif docker://${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG_NAME }}
cd container/wrapper_genpipes/images/
ln -sf genpipes-${{ env.TAG_NAME }}.sif genpipes.sif
cd ../../
tar -zcvf wrapper_genpipes.tgz wrapper_genpipes
- name: Upload sif image
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: container/wrapper_genpipes.tgz
asset_name: wrapper_genpipes.tgz
tag: ${{ github.ref }}
overwrite: true

0 comments on commit 5232bfc

Please sign in to comment.