@@ -119,7 +119,7 @@ generate plugin pipeline:
119119 - cat update_plugin.yml
120120 needs :
121121 - job : load release variables
122- artifacts : true
122+ artifacts : true
123123 artifacts :
124124 paths :
125125 - update_plugin.yml
@@ -333,8 +333,10 @@ basic build final branch:
333333 if [[ $CI_COMMIT_TAG =~ ^([a-zA-Z0-9_]+)_([0-9]{4})\.([0-9]{2})\.([0-9]{2})$ ]]; then
334334 KEY="${BASH_REMATCH[1]}"
335335 if ! echo "$TAG_NAME_ARRAY" | grep -qw "$KEY"; then
336- git tag $(date -u +"%Y.%m.%d")
337- git push github_public tag $(date -u +"%Y.%m.%d")
336+ TAG_DATE="$(date -u +'%Y.%m.%d')"
337+ git tag -d "$TAG_DATE" 2>/dev/null || true
338+ git tag "custom/$TAG_DATE" HEAD
339+ git push github_public "refs/tags/custom/$TAG_DATE:refs/tags/$TAG_DATE"
338340 fi
339341 fi
340342
@@ -415,16 +417,12 @@ notify branch published:
415417 rules :
416418 - if : *on_public_push
417419 - if : *on_public_release
418- - if : *on_custom_push
419420 needs :
420421 - job : load release variables
421422 artifacts : true
422423 - job : publish main
423424 optional : true
424425 artifacts : true
425- - job : publish custom
426- optional : true
427- artifacts : true
428426 variables :
429427 CI_DESCRIPTION : " $PUBLIC_REPO GitHub Updated"
430428 SLACK_CHANNEL : $SLACK_CHANNEL_OK
@@ -441,6 +439,7 @@ create tags after published:
441439 - |
442440 for name in $TAG_GH_PUSH_NAME_ARRAY; do
443441 create_tag "${name}_$(date -u +"%Y.%m.%d")"
442+ sleep 3 # To avoid saturating gitlab CI
444443 done
445444 needs :
446445 - job : publish main
@@ -658,8 +657,6 @@ notify release failed:
658657 when : on_failure
659658 - if : *on_public_release
660659 when : on_failure
661- - if : *on_custom_push
662- when : on_failure
663660 variables :
664661 CI_DESCRIPTION : " GitHub Update Process Failed"
665662 SLACK_CHANNEL : $SLACK_CHANNEL_FAIL
0 commit comments