-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: optionally include ssl setup; switch to production
- Loading branch information
Showing
2 changed files
with
52 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,16 +18,19 @@ A GitHub action to setup the runway CLI! Questions, issues? Please use discussio | |
Currently supported options: | ||
| option | default value | description | | ||
|---------------|---------------|-------------------------------------------| | ||
| username | `<none>` | username/email for runway | | ||
| password | `<none>` | password for runway | | ||
| public-key | `<none>` | use this to add a new key to your account | | ||
| download-link | ... | this is a link to our S3-storage | | ||
| log-level | `error` | debug, info, warn, error | | ||
| version | `latest` | will be added before `v1` | | ||
|
||
> Since we are pre-1.0, latest is fine. We still do not want to break your workflows. But sometimes BC breaks are necessary. Because they usually involve our client and APIs, using latest helps to keep all interruptions to a minimum. | ||
| option | default value | description | | ||
|---------------|---------------------|---------------------------------------------------| | ||
| username | `<none>` | username/email for runway | | ||
| password | `<none>` | password for runway | | ||
| add-key | `false` | if set to true, add the ssh key to runway | | ||
| setup-ssh | `false` | if set to true, setup ssh for `runway app deploy` | | ||
| log-level | `error` | debug, info, warn, error | | ||
| public-key | `~/.ssh/id_rsa.pub` | ssh public key location | | ||
| public-key | `~/.ssh/id_rsa` | ssh private key location | | ||
| log-level | `error` | debug, info, warn, error | | ||
| version | `latest` | `runway` cli version | | ||
|
||
> For the version, `latest` is fine. We strive to never break your workflows. But sometimes BC breaks are necessary. Because they usually involve our client and APIs, using `latest` helps to keep all interruptions to a minimum. | ||
|
||
## Examples | ||
|
||
|
@@ -65,6 +68,7 @@ jobs: | |
with: | ||
username: ${{ secrets.RUNWAY_USERNAME }} | ||
password: ${{ secrets.RUNWAY_PASSWORD }} | ||
setup-ssh: true | ||
- run: runway -y gitremote -a ${YOUR_APPLICATION_NAME} | ||
- run: runway -y app deploy | ||
``` | ||
|
@@ -85,27 +89,23 @@ jobs: | |
deploy_app: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
env: | ||
RUNWAY_LOGLEVEL: info | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
fetch-depth: 0 # this is important! | ||
- name: create an ssh key just for this run | ||
run: | | ||
mkdir -p ~/.ssh/ | ||
ssh-keygen -b 2048 -t rsa -f ~/.ssh/test-runner -c "test-key-${{ github.run_id }}" -q -N "" | ||
- run: | | ||
ssh-keyscan -p 2222 api-builder.staging.pqapp.dev >> ~/.ssh/known_hosts | ||
ssh-agent -a $SSH_AUTH_SOCK > /dev/null | ||
ssh-add ~/.ssh/test-runner | ||
- name: install CLI, login and add ssh key | ||
uses: hostwithquantum/[email protected] | ||
with: | ||
username: ${{ secrets.RUNWAY_USERNAME }} | ||
password: ${{ secrets.RUNWAY_PASSWORD }} | ||
public-key: ~/.ssh/test-runner.pub | ||
private-key: ~/.ssh/test-runner | ||
add-key: true | ||
setup-ssh: true | ||
- name: create app on runway (with a **unique name**) | ||
run: runway -y app create -a my-cool-app-${{ github.run_id }} | ||
- name: deploy your app to runway | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters