Skip to content
This repository was archived by the owner on Jul 21, 2024. It is now read-only.

Commit 386c1dd

Browse files
committed
* update github action docker.yml
1 parent 7016b8d commit 386c1dd

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/workflows/docker.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,16 @@ jobs:
6363
java-version: '17'
6464
cache: 'gradle'
6565
- name: Run build with Gradle Wrapper
66-
run: chmod +x ./gradlew;./gradlew :bootBuildImage --publishImage=true
66+
run: chmod +x ./gradlew;./gradlew :bootBuildImage
67+
-
68+
name: Login to Docker Hub
69+
uses: docker/login-action@v2
70+
with:
71+
username: ${{ secrets.DOCKERHUB_USERNAME }}
72+
password: ${{ secrets.DOCKERHUB_TOKEN }}
73+
- name: Push to Docker Hub
74+
run: docker push eritpchy/webdav-aliyundriver:latest
75+
- name: Push to Docker Hub
76+
run: docker push eritpchy/webdav-aliyundriver:2.4.0-${{ steps.date.outputs.today }}
77+
78+

build.gradle

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,4 @@ bootBuildImage {
4848
'BP_NATIVE_IMAGE_BUILD_ARGUMENTS' : '-H:+AddAllCharsets --enable-url-protocols=http,https'
4949
]
5050
tags = ["eritpchy/webdav-aliyundriver:latest", "eritpchy/webdav-aliyundriver:${version}-${new Date().format('yyyyMMdd')}"]
51-
52-
docker {
53-
publishRegistry {
54-
username = "$System.env.DOCKERHUB_USERNAME"
55-
password = "$System.env.DOCKERHUB_TOKEN"
56-
}
57-
}
5851
}

0 commit comments

Comments
 (0)