We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5df251d commit da4f42aCopy full SHA for da4f42a
.github/workflows/release-packages.yaml
@@ -217,11 +217,10 @@ jobs:
217
submodules: recursive
218
- name: Set Image Tag
219
run: |
220
- echo ${{ github.ref }}
221
- echo $GITHUB_REF
222
- echo $GITHUB_REF | cut -d "/" -f 3 >> $VERSION
223
- arrVERSION=(${VERSION//-/ })
224
- echo "IMAGE_TAG=diffblue/cbmc:${arrVERSION[1]}" >> $GITHUB_ENV
+ # Isolate the version number from a reference to a tag, for example,
+ # '5.20.3' from a string like 'refs/tags/cbmc-5.20.3-exp'
+ VERSION=$(echo ${{ github.ref }} | cut -d "/" -f 3 | cut -d "-" -f 2)
+ echo "IMAGE_TAG=diffblue/cbmc:$VERSION" >> $GITHUB_ENV
225
- name: Build docker image
226
run: docker build -t "$IMAGE_TAG" .
227
- name: Push docker image to DockerHub
0 commit comments