Skip to content

Commit

Permalink
[ci skip] 2024.10.16-32128
Browse files Browse the repository at this point in the history
  • Loading branch information
cybozu-neco committed Oct 16, 2024
2 parents 25f362c + 3303fa6 commit 7bbbdc5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion artifacts.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions artifacts_ignore.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
images:
- repository: ghcr.io/cybozu/etcd
versions: ["3.5.15.1"]
osImage:
- channel: stable
versions: ["3975.2.0","3975.2.1","3975.2.2"]
6 changes: 6 additions & 0 deletions debian/usr/bin/trigger-reboot-all-nodes
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@ CKECLI_COMMAND="/usr/bin/ckecli"
NECO_COMMAND="/usr/bin/neco"
UNAME_COMMAND="/usr/bin/uname"
YES_COMMAND="/usr/bin/yes"
NOREBOOT_FILE="/tmp/no-reboot"

ENVIROMENT=$(${NECO_COMMAND} config get env)
if [ "$ENVIROMENT" != "dev" ]; then
echo "This script is only for dev environment"
exit 0
fi

if [ -f ${NOREBOOT_FILE} ]; then
echo "The no-reboot file exists. Skipping reboot all nodes"
exit 0
fi

# Confirm that host is a learder
HOSTNAME=$(${UNAME_COMMAND} -n)
LEADER=$(${NECO_COMMAND} rebooter leader)
Expand Down

0 comments on commit 7bbbdc5

Please sign in to comment.