[ agent ] [ agent ] - agent bootup optimize - 1

This commit is contained in:
zeaslity
2022-12-30 16:26:02 +08:00
parent 8c510acd8a
commit e9e6535810
5 changed files with 38 additions and 10 deletions

View File

@@ -2,7 +2,7 @@
# good reference
name: Maven Package
name: Octopus Complete CI
on:
# Triggers the workflow on push request events but only for the main branch
@@ -128,6 +128,8 @@ jobs:
echo "--------------------------------------"
cd ./agent/target
ls
echo "start to change timezone to Asia/Shanghai"
timedatectl set-timezone Asia/Shanghai && timedatectl set-ntp true
echo "current time is $(date --rfc-3339=seconds | cut -d"+" -f1 | sed "s/ /-/g" | sed "s/:/-/g")"
echo "start to copy target jar"
cp ./agent-*.jar ./octopus-agent-$(date --rfc-3339=seconds | cut -d"+" -f1 | sed "s/ /-/g" | sed "s/:/-/g").jar