1 parent 931569b commit c928623Copy full SHA for c928623
1 file changed
.github/workflows/build.yml
@@ -40,7 +40,10 @@ jobs:
40
make docker-build
41
42
- name: Push image
43
+ if: github.ref == 'refs/heads/main' || github.ref_type == 'tag'
44
env:
45
IMG_TAG: ${{ steps.build_image.outputs.IMG_TAG }}
46
run: |
- echo $IMG_TAG
47
+ if [[ "${{ github.ref_type }}" == "tag" && "${{ github.ref_name }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] || exit 0
48
+
49
+ echo "Pushing image ${IMG_REGISTRY}${IMG_NAME_CONTROLLER}:${IMG_TAG}"
0 commit comments