mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
(core) update fly.yml to use 0.1.66 version of flyctl and to use V2 of flydev (so no scaling of Nomad)
Test Plan: manually run github action on github to check if applciation is deploying and destroing afterwards Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3983
This commit is contained in:
parent
9484fa14db
commit
e387c6cf2c
2
.github/workflows/fly-cleanup.yml
vendored
2
.github/workflows/fly-cleanup.yml
vendored
@ -19,5 +19,5 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: superfly/flyctl-actions/setup-flyctl@master
|
||||
with:
|
||||
version: 0.0.525
|
||||
version: 0.1.66
|
||||
- run: node buildtools/fly-deploy.js clean
|
||||
|
4
.github/workflows/fly.yml
vendored
4
.github/workflows/fly.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: superfly/flyctl-actions/setup-flyctl@master
|
||||
with:
|
||||
version: 0.0.525
|
||||
version: 0.1.66
|
||||
- id: fly_deploy
|
||||
run: |
|
||||
node buildtools/fly-deploy.js deploy
|
||||
@ -59,6 +59,6 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: superfly/flyctl-actions/setup-flyctl@master
|
||||
with:
|
||||
version: 0.0.525
|
||||
version: 0.1.66
|
||||
- id: fly_destroy
|
||||
run: node buildtools/fly-deploy.js destroy
|
||||
|
@ -28,7 +28,6 @@ async function main() {
|
||||
const volName = getVolumeName();
|
||||
if (!await appExists(name)) {
|
||||
await appCreate(name);
|
||||
await appScale(name);
|
||||
await volCreate(name, volName);
|
||||
} else {
|
||||
// Check if volume exists, and create it if not. This is needed because there was an API
|
||||
@ -65,8 +64,7 @@ async function main() {
|
||||
}
|
||||
|
||||
const appExists = (name) => runFetch(`flyctl status -a ${name}`).then(() => true).catch(() => false);
|
||||
const appCreate = (name) => runAction(`flyctl apps create ${name} -o ${org}`);
|
||||
const appScale = (name) => runAction(`flyctl scale memory 1024 -a ${name}`);
|
||||
const appCreate = (name) => runAction(`flyctl launch --auto-confirm --name ${name} -r ewr -o ${org} --vm-memory 1024`);
|
||||
const volCreate = (name, vol) => runAction(`flyctl volumes create ${vol} -s 1 -r ewr -y -a ${name}`);
|
||||
const volList = (name) => runFetch(`flyctl volumes list -a ${name} -j`).then(({stdout}) => JSON.parse(stdout));
|
||||
const appDeploy = (name, appRoot) => runAction(`flyctl deploy ${appRoot} --remote-only`, {shell: true, stdio: 'inherit'});
|
||||
|
@ -1,4 +1,5 @@
|
||||
app = "{APP_NAME}"
|
||||
primary_region = "ewr"
|
||||
kill_signal = "SIGINT"
|
||||
kill_timeout = 5
|
||||
processes = []
|
||||
|
Loading…
Reference in New Issue
Block a user