Commit 76bfcbb 1 parent 6726871 commit 76bfcbb Copy full SHA for 76bfcbb
File tree 3 files changed +6
-30
lines changed
3 files changed +6
-30
lines changed Original file line number Diff line number Diff line change 21
21
heroku_app_name : ${{secrets.APP_NAME}} # Must be unique in Heroku
22
22
heroku_email : ${{secrets.EMAIL}}
23
23
usedocker : true
24
- docker_build_args : |
25
- HD_UUID
24
+ # docker_build_args: |
25
+ # HD_UUID
26
26
env :
27
27
# 这是为了heroku,注意前缀有个HD,这是为了告诉heroku-deploy,这些变量需要传入到container 中。
28
28
HD_UUID : ${{ secrets.HEROKU_V2RAY_UUID }} # UUID for v2ray user, 为了安全,一定要放入github action token中
Original file line number Diff line number Diff line change 1
1
FROM v2fly/v2fly-core:latest
2
2
3
- # ADD configure.sh /configure.sh
3
+ ADD configure.sh /configure.sh
4
4
5
- # RUN apk add --no-cache ca-certificates curl unzip \
6
- # && chmod +x /configure.sh
5
+ CMD /configure.sh
7
6
8
- # CMD /configure.sh
9
-
10
- ADD v2rayconf.sh /v2rayconf.sh
11
-
12
- ARG UUID
13
- ENV UUID=$UUID
14
-
15
- RUN touch /etc/v2ray/config.json
16
- RUN /v2rayconf.sh
17
7
Original file line number Diff line number Diff line change 1
- #! /bin/sh
2
-
3
- # Download and install V2Ray
4
- mkdir /tmp/v2ray
5
- curl -L -H " Cache-Control: no-cache" -o /tmp/v2ray/v2ray.zip https://github.com/v2fly/v2ray-core/releases/latest/download/v2ray-linux-64.zip
6
- unzip /tmp/v2ray/v2ray.zip -d /tmp/v2ray
7
- install -m 755 /tmp/v2ray/v2ray /usr/local/bin/v2ray
8
- install -m 755 /tmp/v2ray/v2ctl /usr/local/bin/v2ctl
9
-
10
- # Remove temporary directory
11
- rm -rf /tmp/v2ray
12
-
13
- # V2Ray new configuration
14
- install -d /usr/local/etc/v2ray
15
- cat << EOF > /usr/local/etc/v2ray/config.json
1
+ cat << EOF > /etc/v2ray/config.json
16
2
{
17
3
"inbounds": [
18
4
{
@@ -41,4 +27,4 @@ cat << EOF > /usr/local/etc/v2ray/config.json
41
27
EOF
42
28
43
29
# Run V2Ray
44
- /usr/local/ bin/v2ray -config /usr/local /etc/v2ray/config.json
30
+ /usr/bin/v2ray -config /etc/v2ray/config.json
You can’t perform that action at this time.
0 commit comments