Skip to content

Commit

Permalink
build: fix env latest tag error
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjermiah committed Jan 28, 2024
1 parent f61c53a commit 1989d7b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,16 @@ jobs:

- name: Test Image With new Tag
run: |
# first get the latest tag
LATEST_TAG=$(git describe --tags --abbrev=0 | sed 's/^v//')
echo "LATEST_TAG=${LATEST_TAG}" >> "$GITHUB_ENV"
# then test the image with the latest tag
docker run --rm \
${{ secrets.DOCKERHUB_USERNAME }}/nbiatoolkit:${{ env.DOCKER_IMAGE_TAG }} \
${{ secrets.DOCKERHUB_USERNAME }}/nbiatoolkit:${{ env.LATEST_TAG }} \
python -c "import nbiatoolkit; print(nbiatoolkit.__version__)"
test_image_with_latest_tag:
needs: Continuous-Deployment
runs-on: ubuntu-latest
Expand Down

0 comments on commit 1989d7b

Please sign in to comment.