feat: Add automatic docker build when tagged on master
This commit is contained in:
parent
8e0e16d1f4
commit
5442350a37
2 changed files with 25 additions and 1 deletions
18
.drone.yml
18
.drone.yml
|
@ -23,5 +23,23 @@ steps:
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- master
|
- master
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
- name: "Push docker image"
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: "docker_username"
|
||||||
|
password:
|
||||||
|
from_secret: "docker_password"
|
||||||
|
repo:
|
||||||
|
from_secret: "docker_repo"
|
||||||
|
tags: latest
|
||||||
|
auto_tag: true
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
|
||||||
|
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
|
@ -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…
Add table
Reference in a new issue