diff --git a/.drone.yml b/.drone.yml index ca0f2f5..20ab863 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: docker -name: default +name: Docker image build trigger: branch: @@ -10,12 +10,13 @@ environment: FRP_VERSION: 0.34.3 steps: - - name: tag + - name: config image: alpine commands: - echo -n "$FRP_VERSION,latest" > .tags + - sed -i -E "s/var_FRP_VERSION/$FRP_VERSION/" Dockerfile - - name: publish + - name: build image: plugins/docker settings: username: @@ -23,5 +24,3 @@ steps: password: from_secret: docker_password repo: quackerd/private_test - build_args_from_env: - - FRP_VERSION=$FRP_VERSION diff --git a/Dockerfile b/Dockerfile index dd5d9da..afeedb2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ FROM alpine -ARG FRP_VERSION +ENV FRP_VERSION=var_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