auto build.
This commit is contained in:
parent
93f48def4d
commit
5aceccb6e2
16
.drone.yml
16
.drone.yml
@ -25,4 +25,18 @@ steps:
|
||||
- sha256
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
- tag
|
||||
|
||||
- name: publish_docker
|
||||
image: plugins/docker:latest
|
||||
pull: if-not-exists
|
||||
settings:
|
||||
username:
|
||||
from_secret: hub_username
|
||||
password:
|
||||
from_secret: hub_password
|
||||
repo: rainerosion/ssh-manager
|
||||
tags: latest
|
||||
build_args:
|
||||
- ssh_manage=./ssh_manage
|
||||
dockerfile: drone/Dockerfile
|
||||
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
||||
FROM alpine:latest
|
||||
ARG ssh_manage
|
||||
ENV TIME_ZONE=Asia/Shanghai
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories && apk update && apk add tzdata \
|
||||
&& ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime && echo $TIME_ZONE > /etc/timezone
|
||||
WORKDIR /root
|
||||
ADD ${ssh_manage} /root/
|
||||
EXPOSE 8082
|
||||
CMD [ "/root/ssh_manage" ]
|
||||
Loading…
Reference in New Issue
Block a user