docker-frp/.drone.yml

27 lines
603 B
YAML
Raw Normal View History

2020-07-09 07:47:27 +00:00
kind: pipeline
type: docker
2021-01-02 09:56:44 +00:00
name: Docker image build
2020-07-09 07:47:27 +00:00
trigger:
branch:
2021-01-02 10:02:46 +00:00
- master
2021-01-02 09:40:03 +00:00
2020-07-09 07:47:27 +00:00
steps:
2021-01-02 09:56:44 +00:00
- name: config
2021-01-02 09:40:03 +00:00
image: alpine
commands:
2022-06-20 01:45:05 +00:00
- apk add --no-cache jq curl
2022-06-20 01:44:30 +00:00
- VER=$(curl -sL https://api.github.com/repos/fatedier/frp/releases/latest | jq -r ".tag_name")
2022-06-20 01:51:07 +00:00
- 'VER="${VER:1}"'
2022-06-20 01:50:25 +00:00
- echo $VER
2022-06-20 01:44:30 +00:00
- echo -n "$VER,latest" > .tags
- sed -i -E "s/var_FRP_VERSION/$VER/" Dockerfile
2021-01-02 09:59:07 +00:00
- name: build
2020-07-09 07:47:27 +00:00
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
2021-01-02 10:04:59 +00:00
repo: quackerd/frp