File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,14 @@ jobs:
5757 run : shellcheck builders/*/bin/*
5858 - name : Build Docker image
5959 run : |
60- VERSION=$(git describe --exact-match --tags $(Build.SourceVersion) | sed 's/^v//')
61- docker build -t ibmcom/ibp-microfab:${VERSION} .
62- docker tag ibmcom/ibp-microfab:${VERSION} ibmcom/ibp-microfab:latest
60+ docker build -t ibmcom/ibp-microfab:latest .
6361 - name : Publish Docker image to Docker Hub
6462 env :
6563 DOCKER_HUB_USER_NAME : ${{ secrets.DOCKER_HUB_USER_NAME }}
6664 DOCKER_HUB_ACCESS_TOKEN : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
6765 run : |
68- VERSION=$(git describe --exact-match --tags $(Build.SourceVersion) | sed 's/^v//')
66+ VERSION=$(echo ${GITHUB_REF#refs/tags/} | sed 's/^v//')
67+ docker tag ibmcom/ibp-microfab:latest ibmcom/ibp-microfab:${VERSION}
6968 docker login -u ${DOCKER_HUB_USER_NAME} -p ${DOCKER_HUB_ACCESS_TOKEN}
7069 docker push ibmcom/ibp-microfab:${VERSION}
7170 docker push ibmcom/ibp-microfab:latest
You can’t perform that action at this time.
0 commit comments