Commit Graph

39 Commits

Author SHA1 Message Date
VariableVince 8e6c0c1132 Chore:Deprecation of Node 20: migrate actions in workflows to Node 24 versions (#3460)
## Description:

Node 20 will reach EOL in April 2026. Node.js 20 actions are deprecated
and will be forced to run on Node.js 24 starting June 2, 2026:
https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

Update our workflows in this PR.

- For _deployment-action_ and _deployment-status_: stop using these and
. They seem quite unmaintained which could pose risks and there is no
Node 24 version yet:
https://github.com/chrnorm/deployment-action/issues/93 and
https://github.com/chrnorm/deployment-status/issues/53. It will probably
be updated to Node 24, but why wait if we don't actually need to be
dependent on them per se.

- Instead of the above, use actions/github-script@v8 with default API.
Maybe a bit more maintainance work, if any, but better than to be
dependent on unmaintained outside actions. For reference see
https://docs.github.com/en/rest/deployments/deployments?apiVersion=2026-03-10#create-a-deployment

- For _auto-author-assign_, use v3.0.1
(4d585cc37690897bd9015942ed6e766aa7cdb97f). From v3.0.0 it uses Node 24:
https://github.com/toshimaru/auto-author-assign/releases

- For _stale_, use v10.2.0 (b5d41d4e1d5dceea10e7104786b73624c18a190f).
From v10.0.0 it uses Node 24: https://github.com/actions/stale/releases

- For other actions, use their appropriate version for Node 24.

- Tested all with FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

tryout33
2026-03-19 21:32:32 -07:00
Evan 799da9d1b7 Migrate to a new prod machine: falk2 (#3346)
## Description:

Migrate to a beefier machine

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
2026-03-03 18:45:24 -08:00
evanpelle 81ae714533 Revert "Allow NUM_WORKERS override (#2776)"
This reverts commit 3cd22745f7.

num_workers was not passed to the client
2026-01-07 16:16:58 -08:00
Aotumuri 3cd22745f7 Allow NUM_WORKERS override (#2776)
Resolves #2610

## Description:

Add NUM_WORKERS env override for server worker count.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:
aotumuri

---------

Co-authored-by: Evan <evanpelle@gmail.com>
2026-01-06 19:40:00 -08:00
Evan 02a6ac58ea Cleanup unused deployment secrets & args (#2698)
## Description:

* Remove unused otel creds
* Remove unused R2 creds
* remove left-over BASIC_AUTH
* Generate an admin token on startup
* Removed kick_player since lobby creators already have ability to kick
player

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
2025-12-25 19:38:17 -08:00
Evan a6d3fb1efd switch from dockerhub to ghcr, improve docker caching (#2695)
## Description:

Switch to GHCR for faster pulls/pushes and increased rate limits
Use cache-builder driver for better caching, so npm ci is cached if
dependencies don't change.



## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
2025-12-25 16:00:28 -08:00
Evan 3314ca16ce Turnstile: require token before joining a multiplayer game (#2572)
When user tries to join either a public or private multiplayer game, the
turnstile callback is triggered, and the turnstile token is passed to
the server when joining a game.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
2025-12-08 16:16:31 -08:00
evanpelle 2c67d2b7bf fix staging deployment - remove nbg1 (#2128)
## Description:

nbg1 host was removed causing the ssh-keyscan to fail which failed the
deployment.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
2025-10-01 14:51:57 -07:00
evanpelle b46d76932d add falk1 server to deployment 2025-09-11 21:30:52 -07:00
evanpelle 043462e28a Archive games by using the api service endpoint instead of R2 (#2030)
## Description:

This removes the dependencies on R2, and allows contributors to replay
games without R2 access.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
2025-09-08 16:36:20 -07:00
evanpelle 49e1281e18 pass in otel secrets in github deploy workflow 2025-07-21 16:40:10 -07:00
Scott Anderson 7496f1b884 Remove unused MON_* credentials (#1304)
## Description:

Remove unused MON_* credentials

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors
2025-06-28 23:43:20 -04:00
evanpelle 09bd6312e3 Split build & deploy scripts (#1239)
## Description:

Split deploy.sh into build.sh & deploy.sh (deploy only)

build.sh builds & pushes the docker image
deploy.sh copies the update.sh into machine, pulls the image, and runs
it.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan

---------

Co-authored-by: Scott Anderson <scottanderson@users.noreply.github.com>
2025-06-27 23:39:05 +00:00
Scott Anderson b102d1f299 Add a 30 minute timeout to actions (#1210)
## Description:

Add a 30 minute timeout to all GitHub actions.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-06-17 15:16:37 -04:00
Scott Anderson fff0f00e22 Change deploy concurrency group (#944)
## Description:

Change deploy concurrency group

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-05-29 16:13:35 -07:00
Scott Anderson e2fc114177 Add deploy concurrency configuration (#911)
## Description:


https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-05-27 19:26:45 -07:00
Scott Anderson 95c15de218 Fix deployment status environment (#833)
## Description:

Fix the deployment status environment to match the new environment
names.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-05-21 01:39:23 -04:00
Scott Anderson 9b0ddc7f77 Update status check names (#822)
## Description:

Github requires unique display names for each required status check.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-05-19 23:59:17 -04:00
Scott Anderson 14e284bb40 Update deploy hosts (#774)
## Description:

Update the deploy script with new hosts.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
- Updated deployment workflow to use new deployment targets: "masters"
and "nbg1" (replacing "eu" and "us"), while retaining "staging".
- Adjusted environment variables and SSH setup to support the new
deployment hosts.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-05-16 16:12:52 -07:00
evanpelle 99a5d5b8d7 use prod env for deployment to openfront.io 2025-05-15 15:17:51 -07:00
Scott Anderson 2b7b5f03c7 Reduce workflow permissions (#748)
Reduce workflow permissions to the minimum required.

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-05-13 20:26:22 -07:00
Scott Anderson 95f5cf68d2 Cleanup deploy script (#708)
## Description:

- Remove the environment from the deploy action, to prevent github
actions from automatically creating a second deployment. This is no
longer needed because the relevant secrets have been moved up to the
repository level.
- Remove the PR comment, as this is now redundant.


![image](https://github.com/user-attachments/assets/e07fde04-9788-4a5e-9a94-01b0917c45d1)

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-05-13 19:57:45 -04:00
evan 1aede67f8c remove SERVER_HOST_US from deploy because server has been turned down 2025-05-11 20:38:58 -07:00
Scott Anderson e2c97d8d51 Update github deployment status (#685)
## Description:

- Set deployment status, to better integrate with the Github UI
- Enable PR comments


![image](https://github.com/user-attachments/assets/9c2e70b2-5110-4cd1-9123-364775955c9c)

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-05-09 09:19:25 -07:00
Scott Anderson 5de469e312 Update workflow files (#675)
## Description:

- Split the CI workflow in to separate build and test jobs, to improve
visibility on PRs when the build passes but tests fail.
- Add emoji labels to various jobs and steps
- Add build and startup time to job summary


![image](https://github.com/user-attachments/assets/187e99d2-20de-4220-b1a4-11f4d2e72647)

![image](https://github.com/user-attachments/assets/83f9a9fc-c118-415a-92ca-faca48bac31e)

![image](https://github.com/user-attachments/assets/b8061a28-7d5d-4f93-99c6-673f3ca84e30)

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-05-07 19:15:48 -07:00
Scott Anderson e6ec9382f7 Update deployment script to wait for deployment to come online (#667)
## Description:

- Wait up to five minutes for the deployment to come online
- Re-add the `Notify PR 🚀` step, disabled on the main repo for now

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-05-07 06:15:51 -07:00
Scott Anderson db0684b21d Fix deploy environment name on push (#643)
## Description:

Fix the environment so that it works correctly on push hook.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-05-02 16:41:43 -07:00
evan d5a5fb1aa7 remove notify PR step because it is causing workflow to fail 2025-05-02 15:04:11 -07:00
Scott Anderson a79e0ffc19 Automatically deploy from any branch, PR comments on deploy (#638)
## Description:

- Automatically deploy from any branch
- Add a PR comment on deployment


![image](https://github.com/user-attachments/assets/895560de-b4b0-4b2a-90fd-e3d1818f3090)

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-05-02 12:45:13 -07:00
evan 2bef39408c add otel secrets to github deployment 2025-05-01 11:10:48 -07:00
Scott Anderson 03440e1dd1 deploy (#627)
## Description:

## Please complete the following:

- [ ] I have added screenshots for all UI updates
- [ ] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [ ] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

<DISCORD USERNAME>

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-04-29 20:22:18 -07:00
Scott Anderson 7e64b21450 Fix push hook (#626)
## Description:

## Please complete the following:

- [ ] I have added screenshots for all UI updates
- [ ] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [ ] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

<DISCORD USERNAME>

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-04-29 20:08:27 -07:00
Scott Anderson c2a519ef55 deploy (#623)
## Description:

## Please complete the following:

- [ ] I have added screenshots for all UI updates
- [ ] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [ ] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

<DISCORD USERNAME>

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-04-29 14:44:18 -07:00
Scott Anderson b8fd55077b deploy (#622)
## Description:

## Please complete the following:

- [ ] I have added screenshots for all UI updates
- [ ] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [ ] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

<DISCORD USERNAME>

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-04-29 14:17:04 -07:00
evan 3e5a1eacdb add ssh-keyscan to github deploy workflow 2025-04-29 14:10:51 -07:00
Scott Anderson ff4e1a4e4f Migrate subdomain deployments to their own GitHub environment (#590)
## Description:

Migrate subdomain deployments to their own GitHub environment, so that
subdomain deployments do not overwrite other subdomains.

| Before | After |
| --- | --- |
|
![image](https://github.com/user-attachments/assets/53be73ab-a01b-4c01-be4f-6f99d358361d)
|
![image](https://github.com/user-attachments/assets/a30d3673-859a-4dec-bea9-d77dd5fdc9ff)
|

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

fake.neo

---------

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-04-27 17:17:35 -07:00
evan cfe292cec7 deploy to main.openfront.dev on main commit 2025-04-21 14:54:42 -07:00
Scott Anderson dc65da68c0 🚀 Deploy (#580)
## Description:

Related to #504


![image](https://github.com/user-attachments/assets/4d55ec7b-7d51-4214-bc29-613845bc5886)

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

fake.neo

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-04-21 09:18:38 -07:00
Scott Anderson b6ec41f350 Deploy workflow (#500)
## Description:

Adds a github workflow to deploy changes to staging or production.

## Steps to enable this workflow

1. Create two github environments at
https://github.com/openfrontio/OpenFrontIO/settings/environments.
- They have to be named `production` and `staging`, unless you modify
the yaml.
2. In each github environment, create two two variables:
    -  `DOCKERHUB_REPO`
    - `DOCKERHUB_USERNAME`
3. In each github environment, create four secrets:
    - `DOCKERHUB_TOKEN`
    - `SERVER_HOST`
    - `SERVER_USERNAME`
    - `SSH_PRIVATE_KEY`

Fixes #504 

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

fake.neo

Co-authored-by: Scott Anderson <662325+scottanderson@users.noreply.github.com>
2025-04-12 18:36:05 -07:00