[ CI ] 更新CI流程 - 3
This commit is contained in:
5
.github/workflows/build-push-docker.yml
vendored
5
.github/workflows/build-push-docker.yml
vendored
@@ -16,9 +16,6 @@ on:
|
||||
# manually run this workflow from the Actions tab
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
FORMAT_TIME: $(date --rfc-3339=seconds | cut -d"+" -f1 | sed "s/ /-/g" | sed "s/:/-/g")
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -134,8 +131,6 @@ jobs:
|
||||
echo "current date is $(date)"
|
||||
echo "start to copy target jar"
|
||||
|
||||
|
||||
echo "FORMAT TIME IS ${FORMAT_TIME}"
|
||||
export formatTime=`date --rfc-3339=seconds | cut -d"+" -f1 | sed "s/ /-/g" | sed "s/:/-/g"`
|
||||
echo "current format date is ${formatTime}"
|
||||
echo "write the version info to env"
|
||||
|
||||
Reference in New Issue
Block a user