feat: Add automatic docker build when tagged on master
parent
8e0e16d1f4
commit
d0d59def8f
20
.drone.yml
20
.drone.yml
|
@ -21,7 +21,23 @@ steps:
|
||||||
from_secret: "gitea_base_url"
|
from_secret: "gitea_base_url"
|
||||||
files: build/libs/CSharpCommentChecker-*.jar
|
files: build/libs/CSharpCommentChecker-*.jar
|
||||||
when:
|
when:
|
||||||
branch:
|
event:
|
||||||
- master
|
- tag
|
||||||
|
- name: "Push docker image"
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: "docker_username"
|
||||||
|
password:
|
||||||
|
from_secret: "docker_password"
|
||||||
|
registry:
|
||||||
|
from_secret: "docker_registry"
|
||||||
|
repo:
|
||||||
|
from_secret: "docker_repo"
|
||||||
|
tags: latest
|
||||||
|
auto_tag: true
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
FROM eclipse-temurin:16-jdk
|
||||||
|
|
||||||
|
RUN mkdir /opt/validation
|
||||||
|
|
||||||
|
COPY build/libs/CSharpCommentChecker-*.jar /opt/validation/
|
||||||
|
RUN mv /opt/validation/CSharpCommentChecker-*.jar /opt/validation/CSharpCommentChecker.jar
|
Loading…
Reference in New Issue