d2ray/.drone.yml

38 lines
683 B
YAML
Raw Normal View History

2021-04-10 08:21:07 +00:00
kind: pipeline
type: docker
name: Docker image build
trigger:
branch:
- master
2021-04-10 09:10:08 +00:00
environment:
VERSION: 1.4.2
2021-04-10 08:21:07 +00:00
steps:
- name: config
image: alpine
commands:
- echo -n "$VERSION,latest" > .tags
2021-04-10 09:10:08 +00:00
- sed -i -E "s/var_VERSION/$VERSION/" Dockerfile
2021-04-10 08:21:07 +00:00
2021-04-22 09:01:45 +00:00
- name: upload
image: alpine
commands:
- chmod +x ./encrypt_upload.sh
2021-04-22 09:02:35 +00:00
- ./encrypt_upload.sh
2021-04-22 09:01:45 +00:00
2021-04-10 08:21:07 +00:00
- name: build
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
2021-04-19 07:51:22 +00:00
repo: quackerd/d2ray
- name: refresh
image: alpine
commands:
- chmod +x ./refresh.sh
- ./refresh.sh