Skip to content

Commit

Permalink
fix: package version (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyoung84 authored Jul 5, 2024
1 parent d26e0cc commit cc57e8d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/tag_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ jobs:
tag:
name: Bump version
runs-on: ubuntu-latest
outputs:
new_version: ${{ steps.output_version.outputs.new_version }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -74,6 +72,7 @@ jobs:
sudo singularity build build/container.sif scripts/singularity_build.def
- name: Login and Deploy Container
run: |
latest_tag=$(git ls-remote --tags --refs --sort="v:refname" | tail -n1 | sed 's/.*\/v//')
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}:$latest_tag
singularity push build/container.sif oras://ghcr.io/${GITHUB_REPOSITORY}:latest

0 comments on commit cc57e8d

Please sign in to comment.