Skip to content

Commit c928623

Browse files
committed
WIP
1 parent 931569b commit c928623

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ jobs:
4040
make docker-build
4141
4242
- name: Push image
43+
if: github.ref == 'refs/heads/main' || github.ref_type == 'tag'
4344
env:
4445
IMG_TAG: ${{ steps.build_image.outputs.IMG_TAG }}
4546
run: |
46-
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

Comments
 (0)