This commit is contained in:
oscar 2021-01-02 04:56:44 -05:00
parent 59b752e2c1
commit 0a378909c5
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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