Skip to content

Commit

Permalink
Merge pull request #236 from aditi5050/master
Browse files Browse the repository at this point in the history
 Fixed Improper tags for Meshery Docker Extension #6396
  • Loading branch information
Revolyssup authored Oct 21, 2022
2 parents 19e3874 + 6db4b69 commit 8abab5c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ jobs:
else
echo RELEASE_CHANNEL=edge >> $GITHUB_ENV
fi
LATEST_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g') >> $GITHUB_ENV
GIT_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g') >> $GITHUB_ENV
# GIT_VERSION=$(git describe --tags `git rev-list --tags --max-count=1` --always)
GIT_STRIPPED_VERSION=$(git ls-remote --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g' | cut -c2-)
LATEST_VERSION=$(git ls-remote --sort='v:refname' --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g') >> $GITHUB_ENV
GIT_VERSION=$(git ls-remote --sort='v:refname' --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g') >> $GITHUB_ENV
GIT_STRIPPED_VERSION=$(git ls-remote --sort='v:refname' --tags | tail -1 | cut -f2 | sed 's/refs\/tags\///g' | cut -c2-)
echo "Release channel determined to be $RELEASE_CHANNEL"
echo "GIT_LATEST=$LATEST_VERSION" >> $GITHUB_ENV
echo "GIT_VERSION=$GIT_VERSION" >> $GITHUB_ENV
Expand Down Expand Up @@ -115,4 +114,4 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ${{ secrets.IMAGE_NAME }}
readme-filepath: README.md
readme-filepath: README.md

0 comments on commit 8abab5c

Please sign in to comment.