Skip to content

Commit

Permalink
Normalize tag to version
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Nov 8, 2022
1 parent eff9379 commit 7cd4207
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ jobs:
- name: Fetch git tags
run: git fetch --prune --unshallow --tags

- name: Get release version
run: |
VERSION=`echo "${{ github.ref_name }}" | sed 's/v\(.*\)/\1/' `
echo "VERSION=${VERSION}"
echo "VERSION=${VERSION}" >> ${GITHUB_ENV}
- name: Docker Build
run: |
docker build -t yurishkuro/microsim:${{ github.ref_name }} .
docker build -t yurishkuro/microsim:${VERSION} .
- name: Docker Login
run: |
Expand Down

0 comments on commit 7cd4207

Please sign in to comment.