Giter Club home page Giter Club logo

ibmyes's People

Contributors

fcying avatar speedmrl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ibmyes's Issues

一个账号多APP部署的workflow修改问题

我试着修改了deploy.sh和ibm.yml,结果发现执行workflow之后更新了3遍app1,后面的app2和app3动都没动,请问大神还要修改哪些地方啊?

增加和修改的代码如下:
deploy.sh

mkdir -p $IBM_APP_NAME2
mkdir -p $IBM_APP_NAME3

cloudfoundry2 config

cp -rvf ./config/manifest.yml ./$IBM_APP_NAME2/
sed "s/IBM_APP_NAME/${IBM_APP_NAME2}/" ./$IBM_APP_NAME2/manifest.yml -i
sed "s/IBM_MEMORY/${IBM_MEMORY2}/" ./$IBM_APP_NAME2/manifest.yml -i

v2ray2 config

cp -vf ./config/v2ray ./$IBM_APP_NAME2/$IBM_APP_NAME2
cp -vf ./config/v2ctl ./$IBM_APP_NAME2/
{
echo "#! /bin/bash"
echo "wget https://raw.githubusercontent.com/$GITHUB_REPOSITORY/master/config/config.json"
echo "sed 's/V2_ID/$V2_ID2/' config.json -i"
echo "sed 's/V2_PATH/$V2_PATH2/' config.json -i"
echo "sed 's/ALTER_ID/$ALTER_ID2/' config.json -i"

} > ./$IBM_APP_NAME2/d.sh
chmod +x ./$IBM_APP_NAME2/d.sh

cloudfoundry3 config

cp -rvf ./config/manifest.yml ./$IBM_APP_NAME3/
sed "s/IBM_APP_NAME/${IBM_APP_NAME3}/" ./$IBM_APP_NAME3/manifest.yml -i
sed "s/IBM_MEMORY/${IBM_MEMORY3}/" ./$IBM_APP_NAME3/manifest.yml -i

v2ray3 config

cp -vf ./config/v2ray ./$IBM_APP_NAME3/$IBM_APP_NAME3
cp -vf ./config/v2ctl ./$IBM_APP_NAME3/
{
echo "#! /bin/bash"
echo "wget https://raw.githubusercontent.com/$GITHUB_REPOSITORY/master/config/config.json"
echo "sed 's/V2_ID/$V2_ID3/' config.json -i"
echo "sed 's/V2_PATH/$V2_PATH3/' config.json -i"
echo "sed 's/ALTER_ID/$ALTER_ID3/' config.json -i"

} > ./$IBM_APP_NAME3/d.sh
chmod +x ./$IBM_APP_NAME3/d.sh

cd ./$IBM_APP_NAME2
#echo "${BLUE}ibmcloud cf push${END}"
#$IBMCLOUD cf push
echo "${BLUE}cf push${END}"
$CF push

cd ./$IBM_APP_NAME3
#echo "${BLUE}ibmcloud cf push${END}"
#$IBMCLOUD cf push
echo "${BLUE}cf push${END}"
$CF push

if [ $? -ne 0 ]; then
echo "${BLUE}print error${END}"
$CF logs $IBM_APP_NAME --recent
$CF logs $IBM_APP_NAME2 --recent
$CF logs $IBM_APP_NAME3 --recent
exit 1
fi

ibm.yml

IBM_APP_NAME2: ${{ secrets.IBM_APP_NAME2 }}
IBM_MEMORY2: ${{ secrets.IBM_MEMORY2 }}
V2_ID2: ${{ secrets.V2_ID2 }}
V2_PATH2: ${{ secrets.V2_PATH2 }}
ALTER_ID2: ${{ secrets.ALTER_ID2 }}
IBM_APP_NAME3: ${{ secrets.IBM_APP_NAME3 }}
IBM_MEMORY3: ${{ secrets.IBM_MEMORY3 }}
V2_ID3: ${{ secrets.V2_ID3 }}
V2_PATH3: ${{ secrets.V2_PATH3 }}
ALTER_ID3: ${{ secrets.ALTER_ID3 }}

Errors when deploy

cf push===================================
Pushing from manifest to org *** / space dev as ***...
Using manifest file /home/runner/work/IBMYes-new/IBMYes-new/v2ray-cloudfoundry/manifest.yml
Getting app info...
Updating app with these attributes...
name: ***
path: /home/runner/work/IBMYes-new/IBMYes-new/v2ray-cloudfoundry
command: ./v2ray/v2ray
disk quota: 1G
health check type: port
instances: 1
memory: 256M
stack: cflinuxfs3
routes:
***.us-south.cf.appdomain.cloud

Updating app ***...
Mapping routes...
Comparing local files to remote cache...
Packaging files to upload...
Uploading files...

0 B / 1.28 KiB 0.00%
The app is invalid: Invalid application source code found
1.28 KiB / 1.28 KiB 100.00%FAILED
##[error]Process completed with exit code 1.

Some error print when deploy actions

Run ./deploy.sh
./deploy.sh
shell: /bin/bash --noprofile --norc -e -o pipefail {0}
env:
IBM_ACCOUNT: ***
RESOURSE_ID:
IBM_APP_NAME: ***
IBM_MEMORY: ***
BIN_NAME: ***
V2_ID: ***
V2_PATH: ***
ALTER_ID: ***
Saved in /home/runner/.bluemix/tmp/cf_005572877/cf-cli_6.51.0_linux_x86-64.tgz
Installing Cloud Foundry CLI...
OK
Cloud Foundry CLI is successfully installed
cf login===================================
API endpoint: https://api.us-south.cf.cloud.ibm.com

Email: ***

Password:
Authenticating...
OK

Targeted org ***

Targeted space dev

API endpoint: https://api.us-south.cf.cloud.ibm.com (API version: 3.87.0)
User: ***
Org: ***
Space: dev
cf push===================================
Pushing from manifest to org *** / space dev as ...
Byte quantity must be a positive integer with a unit of measurement like M, MB, G, or GB
Using manifest file /home/runner/work/IBMYes-new/IBMYes-new/
/manifest.yml
FAILED
print error===================================
Retrieving logs for app *** in org *** / space dev as ***...

IBM爆了

机器启动不了,又爆炸了?

Errors when deploy run the workflow at IBM cloud interface

类型
实例
日志
时间
APP/PROC/WEB 0 2020/09/09 04:00:43 Using config from env: /home/vcap/app/v2ray/config.json
2020年9月9日 下午12:00:43
APP/PROC/WEB 0 2020/09/09 04:06:36 Using config from env: /home/vcap/app/v2ray/config.json
2020年9月9日 下午12:06:36

actions报错

Installing Cloud Foundry CLI...
OK
Cloud Foundry CLI is successfully installed
cf login===================================
./deploy.sh: line 91: /home/runner/.bluemix/cfcli/cf: No such file or directory
./deploy.sh: line 99: /home/runner/.bluemix/cfcli/cf: No such file or directory
cf push===================================
print error===================================
./deploy.sh: line 103: /home/runner/.bluemix/cfcli/cf: No such file or directory

没有找到对应路径

Error IBM Cloud Deploy / deploy

154 Updating app ***...
155 Mapping routes...
156 Comparing local files to remote cache...
157 Packaging files to upload...
158 Uploading files...
159
160 The app is invalid: Invalid application source code found
161 0 B / 1.27 KiB 0.00%FAILED
162 ##[error]Process completed with exit code 1.

读不到仓库内config.json

2020-09-24T05:18:20.***6+0000 [APP/PROC/WEB/0] ERR --2020-09-24 05:18:20-- https://raw.githubusercontent.com/bk1412/***/master/config/config.json
2020-09-24T05:18:20.91+0000 [APP/PROC/WEB/0] ERR Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 199.232.8.133
2020-09-24T05:18:20.91+0000 [APP/PROC/WEB/0] ERR Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|199.232.8.133|:443... connected.
2020-09-24T05:18:20.99+0000 [APP/PROC/WEB/0] ERR HTTP request sent, awaiting response... 404 Not Found
2020-09-24T05:18:20.99+0000 [APP/PROC/WEB/0] ERR 2020-09-24 05:18:20 ERROR 404: Not Found.
2020-09-24T05:18:21.03+0000 [APP/PROC/WEB/0] ERR sed: can't read config.json: No such file or directory
2020-09-24T05:18:21.05+0000 [APP/PROC/WEB/0] ERR sed: can't read config.json: No such file or directory
2020-09-24T05:18:21.08+0000 [APP/PROC/WEB/0] ERR sed: can't read config.json: No such file or directory

The app is invalid: Invalid application source code found

2020年9月26日21:07:36
几个小时前,我看到大佬的项目更新了,就拉了更新一下,然后就报错了.
好像是更严格了,我部署了三个项目作为一个负载均衡,三个都进行了最新的更新,
前两个都是好的,第三个就报错了,然后再执行了一次前两个,也都报错了.
The app is invalid: Invalid application source code found
***0.40 MiB / ***0.40 MiB ***00.00%FAILED
print cf push error===================================
Retrieving logs for app *** in org *** / space dev as ***...

2020-09-26T***:50:07.08+0000 [API/6] OUT Updated app with guid 0ff42e76-4ab-442-9ca0-b0cbda6b084 ({"buildpack"=>"binary_buildpack", "command"=>"[PRIVATE DATA HIDDEN]", "disk_quota"=>28, "health_check_http_endpoint"=>"", "health_check_type"=>"port", "instances"=>, "memory"=>256, "name"=>"***", "space_guid"=>"ee785de2-eb59-4be3-b48f-5f209663e382"})
Error: Process completed with exit code ***.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.