chore: remove Bazel and use native Gitea Actions steps
Update README Actions Table / update-readme (push) Successful in 6s
Update README Actions Table / update-readme (push) Successful in 6s
This commit is contained in:
@@ -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` |
|
| [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` |
|
| [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` |
|
| [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` |
|
| [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` |
|
| [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` |
|
||||||
|
|
||||||
|
|||||||
@@ -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'
|
|
||||||
```
|
|
||||||
@@ -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 .
|
|
||||||
@@ -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 }}
|
|
||||||
```
|
|
||||||
@@ -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/"
|
|
||||||
Reference in New Issue
Block a user