Simplify repository: Remove GitHub workflows and simplify Docker for production only

- Remove GitHub workflows and related files

- Simplify Dockerfile to focus on production build only

- Update README to focus on local development with Docker for production

- Remove docker-compose and other Docker-related files

- Clean up documentation to match new simplified approach
This commit is contained in:
courtmanr@gmail.com
2025-03-03 15:18:55 +00:00
parent 7716d0ad37
commit 770fe7cb24
10 changed files with 79 additions and 1010 deletions
-13
View File
@@ -1,13 +0,0 @@
# These are supported funding model platforms
github: [rcourtman]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
-36
View File
@@ -1,36 +0,0 @@
---
name: Docker Issue
about: Report an issue with the Docker image
title: '[DOCKER] '
labels: docker
assignees: ''
---
## Docker Issue
**Docker Image Version:**
<!-- Which version of the Docker image are you using? (e.g., rcourtman/pulse:1.0.0) -->
**Environment:**
<!-- Details about your environment (OS, Docker version, etc.) -->
**Issue Description:**
<!-- A clear description of the issue you're experiencing -->
**Steps to Reproduce:**
<!-- Steps to reproduce the behavior -->
**Expected Behavior:**
<!-- What you expected to happen -->
**Actual Behavior:**
<!-- What actually happened -->
**Docker Run Command:**
<!-- The command you used to run the container -->
```bash
docker run -d -p 7654:7654 --env-file .env --name pulse-app rcourtman/pulse:latest
```
**Additional Context:**
<!-- Any other context about the problem here -->
-29
View File
@@ -1,29 +0,0 @@
# Version Update Workflow
This GitHub workflow automatically updates the application version when a new release is created.
## How it works
1. When you create a new release on GitHub, the workflow is triggered
2. It updates the `frontend/src/utils/version.js` file with the new version number
3. It also updates the version in both the root and frontend `package.json` files
4. The changes are committed and pushed back to the repository
## Creating a new release
To create a new release and update the version displayed in the app:
1. Go to your GitHub repository
2. Click on "Releases" in the right sidebar
3. Click "Create a new release" or "Draft a new release"
4. Enter a tag version (e.g., `v1.0.1` or `1.0.1`)
5. Add a title and description for your release
6. Click "Publish release"
The workflow will automatically update the version in your codebase.
## Notes
- The version displayed in the app header will be updated to match the release tag
- If you use a tag with a 'v' prefix (e.g., `v1.0.1`), the 'v' will be removed in the version file, but the app already adds the 'v' when displaying it
- Make sure your repository has the necessary permissions for the GitHub Action to push changes
@@ -1,60 +0,0 @@
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
ref: main # Ensure we get the latest version updates
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: 'arm64,amd64'
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: rcourtman/pulse
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
latest
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
target: production
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Update Docker Hub Description
uses: peter-evans/dockerhub-description@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: rcourtman/pulse
short-description: "Real-time ProxMox monitoring with CPU, memory, network, and disk metrics across nodes."
readme-filepath: ./README.md
@@ -1,41 +0,0 @@
name: Update Version
on:
release:
types: [published]
jobs:
update-version:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Update version file
run: |
# Extract version from the release tag (remove 'v' prefix if present)
VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
# Create utils directory if it doesn't exist
mkdir -p frontend/src/utils
# Update the version.js file
echo "// This file contains the version information for the application" > frontend/src/utils/version.js
echo "// It is automatically updated when a new release is created" >> frontend/src/utils/version.js
echo "" >> frontend/src/utils/version.js
echo "export const VERSION = '$VERSION'; // Updated by GitHub Actions" >> frontend/src/utils/version.js
- name: Commit and push if changed
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
git add frontend/src/utils/version.js
git diff --staged --quiet || (git commit -m "Update version to ${{ github.ref_name }}" && git push)