From ee2febc28fdc36e4462edeb7ba0dc2979804f16d Mon Sep 17 00:00:00 2001 From: jtyoung84 <104453205+jtyoung84@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:42:53 -0700 Subject: [PATCH 1/2] ci: adds publishing step --- .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..e499e9b 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 \ No newline at end of file From 12e8560942cb6aff0d2cc6ad19a12ce2bc358372 Mon Sep 17 00:00:00 2001 From: jtyoung84 <104453205+jtyoung84@users.noreply.github.com> Date: Mon, 18 Mar 2024 17:43:24 -0700 Subject: [PATCH 2/2] ci: eof newline --- .github/workflows/tag_and_publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tag_and_publish.yml b/.github/workflows/tag_and_publish.yml index e499e9b..460841e 100644 --- a/.github/workflows/tag_and_publish.yml +++ b/.github/workflows/tag_and_publish.yml @@ -115,4 +115,4 @@ jobs: 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 \ No newline at end of file + singularity push aind-data-transformation/build/container.sif oras://ghcr.io/${GITHUB_REPOSITORY}:latest