This repository was archived by the owner on Jul 21, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 21
21
required : true
22
22
default : ' warning'
23
23
tags :
24
- description : ' Test scenario tags'
24
+ description : ' Test scenario tags'
25
+
26
+ env :
27
+ TZ : Asia/Shanghai
25
28
26
29
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
27
30
jobs :
34
37
-
35
38
name : Get current date
36
39
id : date
37
- run : echo "::set-output name=today::$(date +'%Y-%m- %d')"
40
+ run : echo "::set-output name=today::$(date +'%Y%m %d')"
38
41
-
39
42
name : Set up QEMU
40
43
uses : docker/setup-qemu-action@v1
70
73
with :
71
74
username : ${{ secrets.DOCKERHUB_USERNAME }}
72
75
password : ${{ secrets.DOCKERHUB_TOKEN }}
76
+ # Set VERSION_INFORMATION
77
+ - run : echo "VERSION_INFORMATION=$(${{github.workspace}}/gradlew -q ciPrintVersionInformation)" >> $GITHUB_ENV
73
78
- name : Push to Docker Hub
74
79
run : docker push eritpchy/webdav-aliyundriver:latest
75
80
- name : Push to Docker Hub
76
- run : docker push eritpchy/webdav-aliyundriver:2.4.0 -${{ steps.date.outputs.today }}
81
+ run : docker push eritpchy/webdav-aliyundriver:${{ env.VERSION_INFORMATION }} -${{ steps.date.outputs.today }}
77
82
78
83
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ tasks.named('test') {
41
41
useJUnitPlatform()
42
42
}
43
43
44
+ task ciPrintVersionInformation {
45
+ println version
46
+ }
47
+
44
48
bootBuildImage {
45
49
builder = ' maliksalman/paketobuildpacks-builder-tiny:focal-1.0.2'
46
50
environment = [
You can’t perform that action at this time.
0 commit comments