v2ray4flyio
v2ray4flyio copied to clipboard
部署失败!!!
##[debug]Evaluating condition for step: 'Deploy' ##[debug]Evaluating: success() ##[debug]Evaluating success: ##[debug]=> true ##[debug]Result: true ##[debug]Starting: Deploy ##[debug]Loading inputs ##[debug]Loading env Run sh ./deploy.sh ##[debug]/usr/bin/bash -e /home/runner/work/_temp/6f387e78-f129-45c0-ae9a-9b5d8a65dd50.sh Could not resolve command - flyctl. So, install flyctl first. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 1475 0 1475 0 0 26818 0 --:--:-- --:--:-- --:--:-- 26818 #=#=#
################################# 46.1% ######################################################################## 100.0% set channel to shell flyctl was installed successfully to /usr/local/bin/flyctl Run 'flyctl --help' to get started The app has been created. Next, create app config file - fly.toml. Create app config file success. Next, set app secrets and regions. Error Could not find App "***"
Error Could not find App "***"
App secrets and regions set success. Next, deploy the app. ==> Verifying app config --> Verified app config ==> Building image ==> Creating build context --> Creating build context done ==> Building image with Docker --> docker host: 20.10.17+azure-3 linux x86_64 Sending build context to Docker daemon 91.14kB
Step 1/5 : FROM alpine:latest latest: Pulling from library/alpine 213ec9aee27d: Already exists Digest: sha256:bc41182d7ef5ffc53a40b044e725193bc10142a1243f395ee852a8d9730fc2ad Status: Downloaded newer image for alpine:latest ---> 9c6f07244728 Step 2/5 : WORKDIR /root ---> Running in d98f74a33dcc ---> eef457ba65fd Step 3/5 : COPY v2ray.sh /root/v2ray.sh ---> a233184b337e Step 4/5 : RUN set -ex && apk add --no-cache tzdata openssl ca-certificates && mkdir -p /etc/v2ray /usr/local/share/v2ray /var/log/v2ray && chmod +x /root/v2ray.sh ---> Running in 5bfafeeab110
- apk add --no-cache tzdata openssl ca-certificates fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.16/community/x86_64/APKINDEX.tar.gz (1/3) Installing ca-certificates (20220614-r0) (2/3) Installing openssl (1.1.1q-r0) (3/3) Installing tzdata (2022c-r0) Executing busybox-1.35.0-r17.trigger Executing ca-certificates-20220614-r0.trigger OK: 10 MiB in 17 packages
- mkdir -p /etc/v2ray /usr/local/share/v2ray /var/log/v2ray
- chmod +x /root/v2ray.sh ---> 8bd3537012d2 Step 5/5 : CMD [ "/root/v2ray.sh" ] ---> Running in 11f877ac851d ---> 7c3fa624872c Successfully built 7c3fa624872c Successfully tagged registry.fly.io/:deployment-01GDWH638WZ66P0WC4KNNZQRVV --> Building image done ==> Pushing image to fly The push refers to repository [registry.fly.io/] 250619561232: Preparing 2de40546602c: Preparing 994393dc58e7: Preparing Error failed to fetch an image or build from source: error rendering push status stream: name unknown: app repository not found
Error: Process completed with exit code 1. ##[debug]Finishing: Deploy
不好意思,你可以检查下自己账号是否绑定信用卡账户,之前有人就是没有绑定造成不能创建应用的。
绑定了!但原来还有最后一步付费验证没过........
Fork 后,配置完,最后也要 Push 一次代码才可触发构建 ,这句话是什么意思啊,我小白 我没看懂。name: Fly Deploy
on:
push:
schedule:
- cron: '0 4 1 * *'
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
APP_NAME: ${{ secrets.APP_NAME }}
UUID: ${{ secrets.UUID }} 这三个地方是改成 UUID: ${{ secrets.5193812f-9841-4a22-ae0b-60a0e061974a }}
还是 UUID: ${{ 5193812f-9841-4a22-ae0b-60a0e061974a }}
Fork 后,配置完,最后也要 Push 一次代码才可触发构建 ,这句话是什么意思啊,我小白 我没看懂。name: Fly Deploy on: push: schedule: - cron: '0 4 1 * *' env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} APP_NAME: ${{ secrets.APP_NAME }} UUID: 这三个地方是改成secrets.UUID这三个地方是改成UUID:{{ secrets.5193812f-9841-4a22-ae0b-60a0e061974a }} 还是 UUID: ${{ 5193812f-9841-4a22-ae0b-60a0e061974a }}
- 提交代码是为了触发构建,在提交之前要现打开Actions功能并配置好Secrets
-
main.yml
这是GitHub自动构建配置不要修改; -
UUID
这要在仓库的Secrets下增加;