diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..8be5b1f --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,24 @@ +{ + "labels": [ + "dependencies" + ], + "assignees": [ + "tarampampam" + ], + "extends": [ + "config:base", + ":disableDependencyDashboard" + ], + "regexManagers": [ + { + "fileMatch": [ + "^Dockerfile$" + ], + "matchStrings": [ + "ARG 3PROXY_VERSION=(?.*?)\n" + ], + "depNameTemplate": "github.com/z3APA3A/3proxy", + "datasourceTemplate": "git-tags" + } + ] +} diff --git a/Dockerfile b/Dockerfile index 68e03ed..a498d48 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ # Image page: FROM gcc:12.1.0 as builder -# e.g.: `docker build --build-arg "VERSION=0.9.4" .` -ARG VERSION="0.9.4" +# e.g.: `docker build --build-arg "3PROXY_VERSION=0.9.4" .` +ARG 3PROXY_VERSION=0.9.3 # Fetch 3proxy sources RUN set -x \ - && git clone --branch "${VERSION}" https://github.com/z3APA3A/3proxy.git /tmp/3proxy + && git clone --branch "${3PROXY_VERSION}" https://github.com/z3APA3A/3proxy.git /tmp/3proxy WORKDIR /tmp/3proxy diff --git a/README.md b/README.md index eb417dd..1ec1908 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,10 @@ TCP ports: -Port number | Description ------------ | ----------- -`3128` | [HTTP proxy](https://3proxy.org/doc/man8/proxy.8.html) -`1080` | [SOCKS proxy](https://3proxy.org/doc/man8/socks.8.html) +| Port number | Description | +|-------------|---------------------------------------------------------| +| `3128` | [HTTP proxy](https://3proxy.org/doc/man8/proxy.8.html) | +| `1080` | [SOCKS proxy](https://3proxy.org/doc/man8/socks.8.html) | ## Supported tags @@ -31,10 +31,10 @@ All supported image tags [can be found here][link_docker_tags]. ## Supported environment variables -Variable name | Description | Example ----------------- | ----------------------------------------- | --------------- -`PROXY_LOGIN` | Authorization login | `username` -`PROXY_PASSWORD` | Authorization password | `password` +| Variable name | Description | Example | +|------------------|------------------------|------------| +| `PROXY_LOGIN` | Authorization login | `username` | +| `PROXY_PASSWORD` | Authorization password | `password` | ## How can I use this?