Commit graph

89 commits

Author SHA1 Message Date
fe3d5ebf8d dockerfile update 2025-06-15 14:02:49 -05:00
534cefc973 dockerfile update 2025-06-15 13:59:25 -05:00
d76eedbd6c docker security 2025-06-15 11:07:42 -05:00
ce6cef6605 docker security 2025-06-15 11:06:24 -05:00
0991c1eebc change debian version 2025-06-15 10:59:05 -05:00
381816033c format 2025-06-15 10:56:05 -05:00
11403dea01 update elixir/erlang version 2025-06-15 10:49:57 -05:00
1df2f4a716 add security scan for docker 2025-06-15 10:43:38 -05:00
1ce7f91eed add geolocation 2025-06-15 10:27:18 -05:00
761eb66d1f add spot clustering 2025-06-13 16:28:20 -05:00
d06a78d077 remove tmp 2025-06-13 16:17:47 -05:00
c5b5d0762a map improvements 2025-06-13 16:17:35 -05:00
4a6665ac76 remove fly deploy 2025-06-13 15:10:45 -05:00
8a38859990 fly things 2025-06-13 15:10:29 -05:00
58774baca1 ci test 2025-06-13 14:39:37 -05:00
c13acd6a6f ci test 2025-06-13 14:13:54 -05:00
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