diff --git a/.drone.yml b/.drone.yml index 1862624..2b7da1d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,15 +4,22 @@ name: default trigger: branch: - - master + - test + +environment: + FRP_VERSION: 0.34.3 steps: - - name: build + - name: tag + image: alpine + commands: + - echo -n "$FRP_VERSION,0.1.0" > .tags + + - name: publish image: plugins/docker settings: username: from_secret: docker_username password: from_secret: docker_password - repo: quackerd/frp - tags: latest + repo: quackerd/private_test diff --git a/Dockerfile b/Dockerfile index 0b42028..dd5d9da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM alpine -ENV FRP_VERSION 0.34.3 +ARG FRP_VERSION ENV FRP_URL https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_amd64.tar.gz WORKDIR /opt/frp