Skip to content

Commit

Permalink
Build 2 pkg version (#4)
Browse files Browse the repository at this point in the history
* build: adds pkg version to docker image
  • Loading branch information
jtyoung84 authored Jul 5, 2024
1 parent 5527236 commit b1c5249
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/tag_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Bump version
runs-on: ubuntu-latest
outputs:
new_version: ${{ steps.output_version.outputs.new_version }}
new_version: ${{ steps.tag_version.outputs.new_version }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -74,6 +74,11 @@ jobs:
sudo singularity build build/container.sif scripts/singularity_build.def
- name: Login and Deploy Container
run: |
if [[ ! -n ${{ jobs.tag.outputs.new_version }} ]]; then
echo "Tag is empty" && exit 1
else
echo "Tag is not empty"
fi
echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ github.actor }} --password-stdin oras://ghcr.io
singularity push build/container.sif oras://ghcr.io/${GITHUB_REPOSITORY}:${{ needs.tag.outputs.new_version }}
singularity push build/container.sif oras://ghcr.io/${GITHUB_REPOSITORY}:${{ jobs.tag.outputs.new_version }}
singularity push build/container.sif oras://ghcr.io/${GITHUB_REPOSITORY}:latest

0 comments on commit b1c5249

Please sign in to comment.