d2ray/.drone.yml
quackerd 27af1ede7f
Some checks failed
continuous-integration/drone/push Build is failing
new
2021-04-22 05:06:03 -04:00

38 lines
683 B
YAML

kind: pipeline
type: docker
name: Docker image build
trigger:
branch:
- master
environment:
VERSION: 1.4.2
steps:
- name: config
image: alpine
commands:
- echo -n "$VERSION,latest" > .tags
- sed -i -E "s/var_VERSION/$VERSION/" Dockerfile
- name: upload
image: alpine
commands:
- chmod +x ./encrypt_upload.sh
- ./encrypt_upload.sh
- name: build
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: quackerd/d2ray
- name: refresh
image: alpine
commands:
- chmod +x ./refresh.sh
- ./refresh.sh