Minor fixes
This commit is contained in:
parent
1c063b9d09
commit
4331a51e28
@ -23,7 +23,7 @@ if __name__ == '__main__':
|
||||
# Get image id
|
||||
result = client.get(
|
||||
'/cloud/project/' + config.ovh_public_cloud_project + '/image',
|
||||
flavorType='s1-2',
|
||||
flavorType=config.ovh_public_cloud_flavor,
|
||||
osType='linux',
|
||||
region=config.ovh_public_cloud_region,
|
||||
)
|
||||
@ -52,7 +52,7 @@ if __name__ == '__main__':
|
||||
flavor_id = next(
|
||||
x['id']
|
||||
for x in result
|
||||
if x['name'] == 's1-2'
|
||||
if x['name'] == config.ovh_public_cloud_flavor
|
||||
)
|
||||
|
||||
# Create instance
|
||||
|
2
run.sh
2
run.sh
@ -23,7 +23,7 @@ if [ "$1" == "" ] || [ $# -gt 1 ]; then
|
||||
# Run the build on the OVH instance
|
||||
scp -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" ./build_android.sh ubuntu@${IP_ADDRESS}:~
|
||||
# Build /e/ (or edit the BUILD_FLAVOR environment variable)
|
||||
ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" -f ubuntu@${IP_ADDRESS} 'screen -S build -dm bash BUILD_FLAVOR=e ./build_android.sh'
|
||||
ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null" -f ubuntu@${IP_ADDRESS} 'BUILD_FLAVOR=e screen -S build -dm bash ./build_android.sh'
|
||||
else
|
||||
IP_ADDRESS="$1"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user