-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b1f928
commit 769f1d9
Showing
108 changed files
with
1,256 additions
and
1,553 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.0.0 | ||
6.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
#!/usr/bin/env bash | ||
####################################### | ||
# Dev / GIT / Remove tag | ||
# | ||
# * Remove from local, origin and upstream | ||
# * Works on the main branch | ||
# * Version: 1.0.0 | ||
# | ||
####################################### | ||
# Copyright [2023] [serdigital64@gmail.com] | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
####################################### | ||
|
||
# | ||
# Imports | ||
# | ||
|
||
# shellcheck source=bin/dev-set | ||
source ./bin/dev-set || { echo 'dev-set:Error: unable to load dev environment' 2>&1 && exit 1; } | ||
# shellcheck source-path=bin | ||
source ./bin/dev-env-git || exit 1 | ||
# shellcheck source-path=lib/bl64 | ||
source "${DEV_LIB_BASHLIB64_TARGET}/bashlib64-module-xsv.bash" && | ||
source "${DEV_LIB_BASHLIB64_TARGET}/bashlib64-module-bsh.bash" && | ||
source "${DEV_LIB_BASHLIB64_TARGET}/bashlib64-module-fmt.bash" && | ||
source "${DEV_LIB_BASHLIB64_TARGET}/bashlib64-module-fs.bash" && | ||
source "${DEV_LIB_BASHLIB64_TARGET}/bashlib64-module-rxtx.bash" && | ||
source "${DEV_LIB_BASHLIB64_TARGET}/bashlib64-module-txt.bash" && | ||
source "${DEV_LIB_BASHLIB64_TARGET}/bashlib64-module-api.bash" && | ||
source "${DEV_LIB_BASHLIB64_TARGET}/bashlib64-module-vcs.bash" && | ||
source "${DEV_LIB_BASHLIB64_TARGET}/bashlib64-core.bash" || exit 1 | ||
|
||
# | ||
# Functions | ||
# | ||
|
||
function dev_git_tag_destroy() { | ||
bl64_dbg_app_show_function "$@" | ||
local tag="$1" | ||
|
||
bl64_msg_show_task "switch to main branch (${DEV_GIT_BRANCH_MAIN})" | ||
bl64_vcs_run_git checkout "$DEV_GIT_BRANCH_MAIN" || | ||
return $? | ||
|
||
bl64_msg_show_task "destroy local tag (${tag})" | ||
bl64_vcs_run_git tag -d "$tag" | ||
|
||
bl64_msg_show_task "destroy tag in origin (${DEV_GIT_REMOTE_ORIGIN})" | ||
bl64_vcs_run_git push -d "$DEV_GIT_REMOTE_ORIGIN" "$tag" | ||
|
||
if bl64_lib_flag_is_enabled "$DEV_GIT_REMOTE_UPSTREAM_ENABLED"; then | ||
bl64_msg_show_task "destroy tag in upstream (${DEV_GIT_REMOTE_UPSTREAM})" | ||
bl64_vcs_run_git push -d "$DEV_GIT_REMOTE_UPSTREAM" "$tag" | ||
fi | ||
} | ||
|
||
function dev_git_initialize() { | ||
bl64_dbg_app_show_function "$@" | ||
local tag="$1" | ||
bl64_check_parameter 'tag' && | ||
bl64_vcs_setup | ||
} | ||
|
||
# | ||
# Main | ||
# | ||
|
||
declare dev_git_tag="${1:-}" | ||
|
||
[[ -n "$DEV_CICD_DEBUG" ]] && bl64_dbg_all_enable | ||
|
||
bl64_msg_all_enable_verbose | ||
bl64_msg_show_batch_start 'dev-git-tag-destroy' | ||
dev_git_initialize "$dev_git_tag" && | ||
dev_git_tag_destroy "$dev_git_tag" | ||
bl64_msg_show_batch_finish $? 'dev-git-tag-destroy' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.