Commit graph

423 commits

Author SHA1 Message Date
bda6ec4d68 ci test 2025-06-13 14:09:15 -05:00
76b7ce427a ci test 2025-06-13 14:07:43 -05:00
8f8271af06 ci test 2025-06-13 14:01:17 -05:00
26a92381c6 ci test 2025-06-13 13:59:01 -05:00
f6abb2864b format 2025-06-13 13:41:16 -05:00
a42676cd2e add tailscale 2025-06-13 13:38:51 -05:00
308e216fe0 bump elixir ci version 2025-06-13 13:27:14 -05:00
Graham McIntire
0da7c83039 Merge pull request #1 from aprsme/feat/k3s-deployment
feat: Implement K3s deployment with GitHub Actions CI/CD
2025-06-13 13:23:01 -05:00
4af05a6422 tweaks 2025-06-13 13:22:52 -05:00
google-labs-jules[bot]
1badb192b5 feat: Implement K3s deployment with GitHub Actions CI/CD
This commit introduces a complete setup for deploying the Phoenix application
to a K3s Kubernetes cluster, along with a GitHub Actions workflow for
automated builds and deployments.

Key changes include:

- **Kubernetes Manifests (`k8s/`)**:
    - Namespace (`aprs-app`) for isolating application resources.
    - PostgreSQL setup: PersistentVolumeClaim, Deployment, and Service.
    - Application setup: Deployment (with init container for migrations) and
      Service (NodePort).
    - An example secrets file (`k8s/secrets.yaml.example`) for configuration.
    - `.gitignore` updated to exclude `k8s/secrets.yaml`.

- **GitHub Actions Workflow (`.github/workflows/deploy-k3s.yaml`)**:
    - Builds the Docker image on pushes to the main branch.
    - Pushes the image to GitHub Container Registry (GHCR).
    - Deploys the application to K3s by applying the manifests.
    - Dynamically updates the application deployment with the correct image tag.
    - Requires `KUBE_CONFIG_DATA` GitHub secret for K3s authentication.

- **Application Configuration (`config/runtime.exs`)**:
    - Commented out `libcluster` configuration specific to Fly.io to prevent
      issues in a standard K3s environment.

- **Documentation (`README.md`)**:
    - Added a new "Kubernetes (K3s) Deployment" section detailing:
        - Prerequisites and initial setup (GitHub & K8s secrets).
        - Workflow overview.
        - Application configuration notes (health checks, migrations).
        - Instructions for accessing the application.

This setup provides a robust foundation for CI/CD and running the
application in a self-hosted K3s environment.
2025-06-13 18:18:34 +00:00
c6626c034a drop to elixir 1.17 2025-06-13 10:42:36 -05:00
0aae76a6ab handle malformed packet 2025-06-13 10:20:03 -05:00
b809ffdd4a fix web showing packets 2025-06-13 10:17:35 -05:00
f966e6f140 parse compressed location 2025-06-13 10:06:35 -05:00
6c48b997c0 fix all tests 2025-06-13 09:59:24 -05:00
c0ab108b4d update deps and gettext 2025-06-13 09:55:58 -05:00
cef9a72df1 remove procfile 2025-01-27 14:19:58 -06:00
777eb7ab25 regenerate release 2025-01-27 14:13:18 -06:00
5fed802b21 cleanup 2025-01-27 14:10:38 -06:00
42516d6085 remove buildpacks 2025-01-27 14:02:50 -06:00
47437424d9 try docker build 2025-01-27 13:59:42 -06:00
a77511a172 version tweak testing 2025-01-22 12:40:30 -06:00
6b63e52468 version tweak testing 2025-01-22 12:39:40 -06:00
2c863027a9 version tweak testing 2025-01-22 12:38:58 -06:00
8f3ba97bae version tweak testing 2025-01-22 12:37:18 -06:00
e293dbca83 version tweak testing 2025-01-22 12:36:31 -06:00
eb469f1f0a version tweak testing 2025-01-22 12:35:39 -06:00
7649056c79 update versions for dokku 2025-01-22 12:18:24 -06:00
ff9eb9c614 update everything 2025-01-22 12:12:39 -06:00
bf065aa4e8 update elixir and deps 2025-01-22 12:04:08 -06:00
04e09e03af update more 2024-01-14 17:45:31 -06:00
95f4873971 update elixir version 2024-01-14 11:53:53 -06:00
bbe8f1b420 update deps 2024-01-14 10:51:33 -06:00
8b28c57a74 update github ci 2023-12-17 12:14:47 -06:00
2a45b071c1 update the rest of things 2023-12-17 12:13:49 -06:00
da296d852d auto style things 2023-12-17 12:11:57 -06:00
e240954b25 update deps 2023-12-17 12:08:45 -06:00
f69f110a56 update phoenix and add docker compose config 2023-02-15 12:33:27 -06:00
f654d43aa7 update deps 2023-02-02 11:19:49 -06:00
8d8c178d98 re-add dockerfile 2023-02-01 15:03:43 -06:00
8cfb73c42f try with release 2023-02-01 14:57:25 -06:00
b8d6e70360 dokku tweaks 2023-02-01 14:54:06 -06:00
8e909c7c2c try without node buildpack 2023-02-01 14:38:40 -06:00
bd8e08c749 try without node buildpack 2023-02-01 14:38:09 -06:00
61e757d9e9 add elixir build config 2023-02-01 14:31:49 -06:00
1814aca4e9 add buildpack for dokku 2023-02-01 14:28:33 -06:00
31dec61d8c testing without dockerfile 2023-02-01 14:19:05 -06:00
c750d5da17 more parsing progress on compressed positions 2023-02-01 13:34:05 -06:00
5ea16fa5f7 extract conversions 2023-02-01 08:21:35 -06:00
d33dd2d467 even more testing for parser 2023-01-31 16:46:44 -06:00