mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-10 20:05:55 +02:00
Decouple docker image from package release (#2791)
- entry point fixes for 1.6.0 - correctly override BUILD_VERSION argument - manual release workflow
This commit is contained in:
parent
91b0fce955
commit
311dfdee1f
11 changed files with 211 additions and 298 deletions
|
@ -3,7 +3,7 @@
|
|||
# shellcheck disable=SC2292 # allow [ test ] syntax
|
||||
# shellcheck disable=SC2310 # allow "if function..." syntax with -e
|
||||
|
||||
# set -e
|
||||
set -e
|
||||
shopt -s inherit_errexit
|
||||
|
||||
# match true, TRUE, True, tRuE, etc.
|
||||
|
@ -109,6 +109,8 @@ cscli_if_clean() {
|
|||
for obj in $objs; do
|
||||
if cscli "$itemtype" inspect "$obj" -o json | yq -e '.tainted // false' >/dev/null 2>&1; then
|
||||
echo "Object $itemtype/$obj is tainted, skipping"
|
||||
elif cscli "$itemtype" inspect "$obj" -o json | yq -e '.local // false' >/dev/null 2>&1; then
|
||||
echo "Object $itemtype/$obj is local, skipping"
|
||||
else
|
||||
# # Too verbose? Only show errors if not in debug mode
|
||||
# if [ "$DEBUG" != "true" ]; then
|
||||
|
@ -301,8 +303,8 @@ fi
|
|||
conf_set_if "$PLUGIN_DIR" '.config_paths.plugin_dir = strenv(PLUGIN_DIR)'
|
||||
|
||||
## Install hub items
|
||||
cscli hub update
|
||||
cscli hub upgrade
|
||||
cscli hub update || true
|
||||
cscli hub upgrade || true
|
||||
|
||||
cscli_if_clean parsers install crowdsecurity/docker-logs
|
||||
cscli_if_clean parsers install crowdsecurity/cri-logs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue