27 lines
603 B
YAML
27 lines
603 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")
|
|
- '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
|