Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multi-regions #1011

Merged
merged 13 commits into from Jul 10, 2019

Conversation

Projects
None yet
2 participants
@EtienneM
Copy link
Contributor

commented Jul 4, 2019

  • Added --region flag: Scalingo is now available on multiple regions which slightly changes the way it deploys.
  • Added --debug flag: We also improved a little bit the implementation so that it's easier to debug a failed deployment.
  • Added --timeout flag: Make the timeout configurable and increase it by default. Some deployments failed due to this too low timeout.

EtienneM added some commits Jul 2, 2019

@svenfuchs

This comment has been minimized.

Copy link
Member

commented Jul 4, 2019

@EtienneM Thank you for the pull request!

Do you have an example build log that demonstrates this change works?

Also, these changes will have to be ported to https://github.com/travis-ci/dpl/tree/dpl-2 which is the next major version. I can look into that ... but it might be helpful if I could ask quick questions. Would you be alright with with that via email or our shared Slack channel for dpl? If so, please email me at sven@travis-ci.com

@EtienneM

This comment has been minimized.

Copy link
Contributor Author

commented Jul 4, 2019

Hi,

Here are some logs:

╰─$ ~/Documents/repositories/EtienneM-dpl/bin/dpl --provider=scalingo --app=test-dpl
Installing deploy dependencies    
Preparing deploy
Generating public/private rsa key pair.
Your identification has been saved in .dpl/id_rsa.
Your public key has been saved in .dpl/id_rsa.pub.
The key fingerprint is:
SHA256:TAXFVHM+oaf4gBtG/XRZBEorsTxJu/uNHM1ZEOU6/7s biniou
The key's randomart image is:
+---[RSA 3072]----+
...
+----[SHA256]-----+
Cleaning up git repository with `git stash --all`. If you need build artifacts for deployment, set `deploy.skip_cleanup: true`. See https://docs.travis-ci.com/user/deployment#Uploading-Files-and-skip_cleanup.
Saved working directory and index state WIP on master: 6b826a6 Yet another useless commit
Deploying application
Warning: Permanently added 'ssh.agora-fr1.scalingo.com' (RSA) to the list of known hosts.
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 4 threads 
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 897 bytes | 897.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0)
 <-- Start deployment of test-dpl -->
       Fetching source code
       Fetching deployment cache
-----> Bundling NGINX 1.15.8
       Checksums match. Fetching from cache.
-----> Bundling PHP 7.3.7
-----> Bundling extensions
       apcu
       Checksums match. Fetching from cache.
       phpredis
       Checksums match. Fetching from cache.
       mongodb
       Checksums match. Fetching from cache.
       mcrypt
       Checksums match. Fetching from cache.
-----> Setting up default configuration
-----> Vendoring binaries into slug
 Build complete, shipping your container...
 Waiting for your application to boot... 
 <-- https://test-dpl.scalingo.io -->
To ssh.agora-fr1.scalingo.com:test-dpl.git
   b124fc9..6b826a6  master -> master
scalingo already exists, no checkout
error: could not restore untracked files from stash
The stash entry is kept in case you need it again.

I just sent you an email.

EtienneM added some commits Jul 5, 2019

@svenfuchs

This comment has been minimized.

Copy link
Member

commented Jul 10, 2019

thank you @EtienneM!

👍

@svenfuchs svenfuchs merged commit fd570b7 into travis-ci:master Jul 10, 2019

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.