33 Commits

Author SHA1 Message Date
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 3e7fe607e8 PR description check (#766)
## Description:

Adds a PR description checker that enforce that the PR template is being
followed.

## 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**
- Introduced automated validation for pull request descriptions to
ensure required sections and checklist items are completed before
merging.

<!-- 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:18:45 -07: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
Scott Anderson 9a3983d014 ESLint improvements (#388)
## Description

Adds various features to improve the DX with eslint:

### Webpack

- Use `eslint-webpack-plugin` for better observability of lint errors
during development.

### Ignored files

- Enable `.gitignore` support for eslint.

### Commit hook

- Add `eslint --fix` to pre-commit hook.

### Github actions
- Add eslint check to a new github action workflow.
- Use `eslint-formatter-gha` to annotate PR files with lint failures
(see the Files changed tab,
[example](https://github.com/openfrontio/OpenFrontIO/pull/388/commits/73862230be5aad7b18e122b1cd4ab05fc9570b2c)).


![image](https://github.com/user-attachments/assets/b399b92e-8eb0-48e1-92b7-ce630ccf12e1)

## Testing

These changes have been validated through local testing and through
Github workflows.

## 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-02 09:09:38 -07:00
evanpelle b1c78ccca7 add test action (#281) 2025-03-17 16:52:32 -07:00
Evan 2c075fc382 Revert "initial bun setup"
This reverts commit 5236f7a212.

bun was causing code 1006 websocket errors
2025-03-16 20:37:04 -07:00
BeGj 5236f7a212 initial bun setup 2025-03-07 15:45:29 +00:00
Evan 3751a548e3 don't install submodules on github ci 2025-03-02 12:08:57 -08:00
Evan 2df3db7292 format root dir 2025-02-12 08:38:56 -08:00
Evan a3236653d3 add prettier command 2025-02-12 08:38:38 -08:00
evanpelle 5e3aa1977e Update ci.yml 2024-09-09 15:36:45 -07:00
evanpelle 05f55c490f First Commit 2024-08-04 19:51:23 -07:00