From 84f0880e0beeacfa6c7eaa7645c36274bf4c7482 Mon Sep 17 00:00:00 2001 From: jtyoung84 <104453205+jtyoung84@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:44:59 -0700 Subject: [PATCH] ci: adds publishing step (#17) * ci: adds publishing step * ci: eof newline --- .github/workflows/tag_and_publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tag_and_publish.yml b/.github/workflows/tag_and_publish.yml index 2f44a1a..460841e 100644 --- a/.github/workflows/tag_and_publish.yml +++ b/.github/workflows/tag_and_publish.yml @@ -111,3 +111,8 @@ jobs: ls mkdir build sudo singularity build build/container.sif scripts/singularity_build.def + - name: Login and Deploy Container + run: | + echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ github.actor }} --password-stdin oras://ghcr.io + singularity push aind-data-transformation/build/container.sif oras://ghcr.io/${GITHUB_REPOSITORY}:${{ needs.tag.outputs.new_version }} + singularity push aind-data-transformation/build/container.sif oras://ghcr.io/${GITHUB_REPOSITORY}:latest