docker-frp/.drone.yml
quackerd b8b09e924b
Some checks failed
continuous-integration/drone/push Build is failing
Update '.drone.yml'
2022-06-20 01:50:25 +00:00

28 lines
619 B
YAML

kind: pipeline
type: docker
name: Docker image build
trigger:
branch:
- master
steps:
- name: config
image: alpine
commands:
- apk add --no-cache jq curl
- VER=$(curl -sL https://api.github.com/repos/fatedier/frp/releases/latest | jq -r ".tag_name")
- echo $VER
- VER="${VER:1}"
- echo $VER
- echo -n "$VER,latest" > .tags
- sed -i -E "s/var_FRP_VERSION/$VER/" Dockerfile
- name: build
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: quackerd/frp