You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- add quoting to ssh keys
- add an example for preview apps
- add an example workflow how to do housekeeping
Co-authored-by: Richard Wossal <[email protected]>
This is an example how to setup the runway CLI and then how to deploy your app `cool-app`.
44
+
This is an example workflow which shows runway CLI setup and then how to use the CLI to deploy your app `cool-app`.
40
45
41
-
Once you have the client setup, you can run commands and play around with output and so on. To keep it simple, we're only deploying the code. :) Since the app exists already on runway we use the `runway gitremote` command to initialize the setup.
46
+
Once the client is setup, you can run all commands and play around with output and so on. To keep it simple, we're only deploying the code. :) Since the app exists already on runway we use the `runway gitremote` command to initialize the setup.
- run: runway -y gitremote -a ${YOUR_APPLICATION_NAME}
78
+
- run: runway -y app deploy
74
79
```
75
80
76
81
### Running e2e tests
77
82
78
-
GitHub Actions provides a robust and comprehensive environment. In the following workflow we leverage some of its context in form of `${{ github.run_id }} to deploy your app with a unique name. Once deployed, you can run end-to-end tests against it and in the end, shut it down by deleting the app (and key). :)
83
+
GitHub Actions provides a robust and comprehensive environment to run e2e tests and here's how runway can help:
84
+
85
+
The following workflow leverages some of the context in form of `${{ github.run_id }}`. We'll use this _identifier_ to deploy an app with a unique name. Another viable option is to use the pull-requests's number: `${{ github.event.number }}`.
86
+
87
+
Once deployed, you can run end-to-end tests against it and in the end, shut it down by deleting the app (and key). :) If you decide to keep the application to have a preview available, you may also do that.
In the previous example, we mentioned that keeping an app for people (humans!) to look at it, may be beneficial.
139
+
140
+
The following workflow expands on those concepts and deletes an application from runway when a pull-request is closed (merged or closed without merge). This example _assumes_ that you constructed the application name like, `my-app-${{ github.event.number }}` (instead of `github.run_id`).
0 commit comments