From 90656b57ba247f7d45111ac5de56ce5f7f503777 Mon Sep 17 00:00:00 2001 From: Rody Davis Date: Tue, 13 Oct 2026 21:42:33 -0700 Subject: [PATCH] chore: remove Bazel and use native Gitea Actions steps --- README.md | 2 -- run-buildifier/README.md | 18 ------------ run-buildifier/action.yml | 17 ----------- setup-bazel/README.md | 22 -------------- setup-bazel/action.yml | 61 --------------------------------------- 5 files changed, 120 deletions(-) delete mode 100644 run-buildifier/README.md delete mode 100644 run-buildifier/action.yml delete mode 100644 setup-bazel/README.md delete mode 100644 setup-bazel/action.yml diff --git a/README.md b/README.md index 907ae95..d941ab9 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,6 @@ This repository contains reusable composite actions for CI/CD workflows across o | [Deploy to Coolify](./coolify-deploy) | Triggers a Coolify deployment using a webhook and authorization token. | `rodydavis/shared-actions/coolify-deploy@main` | | [Enforce Flutter Version Constraint](./enforce-flutter-version) | Scans all pubspec.yaml files to ensure they use the required Flutter SDK constraint. | `rodydavis/shared-actions/enforce-flutter-version@main` | | [Deploy Static Pages](./pages-deploy) | Packages static web assets into a hardened Nginx container, pushes to Gitea registry, and deploys to TrueNAS with Traefik ingress. | `rodydavis/shared-actions/pages-deploy@main` | -| [Run Buildifier](./run-buildifier) | Downloads and runs buildifier on Starlark files. | `rodydavis/shared-actions/run-buildifier@main` | -| [Setup Bazel (Bazelisk)](./setup-bazel) | Installs Node, Bazelisk, and configures Git for private SSH dependencies. | `rodydavis/shared-actions/setup-bazel@main` | | [Setup Flutter](./setup-flutter) | Cross-platform setup for Flutter with local mirror and multi-runner concurrency support. | `rodydavis/shared-actions/setup-flutter@main` | | [Deploy to TrueNAS](./truenas-deploy) | Deploys a Docker Compose stack to TrueNAS SCALE over SSH and pulls latest container images. | `rodydavis/shared-actions/truenas-deploy@main` | diff --git a/run-buildifier/README.md b/run-buildifier/README.md deleted file mode 100644 index 07f5ac7..0000000 --- a/run-buildifier/README.md +++ /dev/null @@ -1,18 +0,0 @@ -# Run Buildifier - -Downloads and runs the Bazel buildifier tool in lint mode on Starlark files (like `BUILD.bazel`, `WORKSPACE`, `.bzl` files) to ensure they comply with standard formatting. - -## Inputs - -| Name | Description | Required | Default | -| :--- | :--- | :--- | :--- | -| `version` | The buildifier release version tag to download. | No | `v8.0.1` | - -## Example Usage - -```yaml -- name: Format Check Starlark files - uses: rodydavis/shared-actions/run-buildifier@main - with: - version: 'v8.0.1' -``` diff --git a/run-buildifier/action.yml b/run-buildifier/action.yml deleted file mode 100644 index b4d1135..0000000 --- a/run-buildifier/action.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: 'Run Buildifier' -description: 'Downloads and runs buildifier on Starlark files.' -inputs: - version: - description: 'Buildifier version to download' - required: false - default: 'v8.0.1' - -runs: - using: 'composite' - steps: - - name: Run Buildifier - shell: bash - run: | - curl -sSL "https://github.com/bazelbuild/buildtools/releases/download/${{ inputs.version }}/buildifier-linux-amd64" -o buildifier - chmod +x buildifier - ./buildifier --mode=check -r . diff --git a/setup-bazel/README.md b/setup-bazel/README.md deleted file mode 100644 index 371ecdd..0000000 --- a/setup-bazel/README.md +++ /dev/null @@ -1,22 +0,0 @@ -# Setup Bazel - -Installs Node.js, Bazelisk, and configures Git credentials to resolve private dependencies over SSH. - -## Inputs - -| Name | Description | Required | Default | -| :--- | :--- | :--- | :--- | -| `node_version` | The version of Node.js to install. | No | `24` | -| `cache` | The package manager cache (e.g. `pnpm`, `npm`, `yarn`) to use with `actions/setup-node`. | No | | -| `git_token` | Gitea access token used to authenticate SSH dependencies over HTTPS. | No | | - -## Example Usage - -```yaml -- name: Set up Bazel Environment - uses: rodydavis/shared-actions/setup-bazel@main - with: - node_version: '24' - cache: 'pnpm' - git_token: ${{ secrets.GIT_TOKEN }} -``` diff --git a/setup-bazel/action.yml b/setup-bazel/action.yml deleted file mode 100644 index 85c20c0..0000000 --- a/setup-bazel/action.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: 'Setup Bazel (Bazelisk)' -description: 'Installs Node, Bazelisk, and configures Git for private SSH dependencies.' -inputs: - node_version: - description: 'Node.js version' - required: false - default: '24' - git_token: - description: 'Gitea token for private dependency authentication' - required: false - default: '' - cache: - description: 'Used to specify a package manager for caching in actions/setup-node' - required: false - default: '' - -runs: - using: 'composite' - steps: - - name: Fix MTU size for Proxmox/Docker network compatibility - shell: bash - run: | - if ! command -v ip &> /dev/null; then - if command -v apt-get &> /dev/null && [ "$(id -u)" -eq 0 ]; then - echo "ip command not found. Installing iproute2..." - apt-get update -qy && apt-get install -qy iproute2 || true - else - echo "ip command not found and cannot install. Skipping MTU configuration." - fi - fi - - if command -v ip &> /dev/null; then - DEFAULT_INTERFACE=$(ip route show | grep default | awk '{print $5}') - if [ -n "$DEFAULT_INTERFACE" ]; then - echo "Setting MTU of $DEFAULT_INTERFACE to 1400..." - if [ "$(id -u)" -eq 0 ]; then - ip link set dev "$DEFAULT_INTERFACE" mtu 1400 || true - else - sudo ip link set dev "$DEFAULT_INTERFACE" mtu 1400 || true - fi - fi - fi - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: ${{ inputs.node_version }} - cache: ${{ inputs.cache }} - - - name: Set up Bazel (Bazelisk) - shell: bash - run: | - if ! command -v bazel &> /dev/null && ! command -v bazelisk &> /dev/null; then - npm install -g @bazel/bazelisk - fi - - - name: Configure Git for private SSH dependencies - if: ${{ inputs.git_token != '' }} - shell: bash - run: | - git config --global url."https://${{ inputs.git_token }}@git.rodydavis.dev/".insteadOf "ssh://git@git.rodydavis.dev:2222/"