From f05775d1b48865b07246d00967c4ed7f7348e0e8 Mon Sep 17 00:00:00 2001 From: zeaslity Date: Wed, 8 Feb 2023 15:38:48 +0800 Subject: [PATCH] =?UTF-8?q?[=20github-action=20]=20=E6=96=B0=E5=A2=9EAgent?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=8E=A7=E5=88=B6=20-=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-push-docker.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-push-docker.yml b/.github/workflows/build-push-docker.yml index 7a85a14..33f834d 100644 --- a/.github/workflows/build-push-docker.yml +++ b/.github/workflows/build-push-docker.yml @@ -114,7 +114,6 @@ jobs: # An explicit key for restoring and saving the cache key: octopus-springboot-2.3.6 - - name: Maven package project run: | mvn -B -DskipTests=true install --file pom.xml @@ -129,11 +128,12 @@ jobs: 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 "current time is $(date)" + + echo "current format date is $(date --rfc-3339=seconds | cut -d"+" -f1 | sed "s/ /-/g" | sed "s/:/-/g")" + echo "current date is $(date)" echo "start to copy target jar" + echo "write the version info to env" echo "AGENT_VERSION=$(date --rfc-3339=seconds | cut -d"+" -f1 | sed "s/ /-/g" | sed "s/:/-/g")" >> $GITHUB_ENV cp ./agent-*.jar ./octopus-agent-${{ env.AGENT_VERSION }}.jar