Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/DISCUSSION_TEMPLATE/ask-for-help.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ body:
id: no-duplicate-issues
attributes:
label: "⚠️ Please verify that this bug has NOT been raised before."
description: "Search in the issues sections by clicking [HERE](https://github.com/louislam/dockge/discussions/categories/ask-for-help)"
description: "Search existing discussions by clicking [HERE](https://github.com/Lorwell/dockge/discussions/categories/ask-for-help)"
options:
- label: "I checked and didn't find similar issue"
required: true
Expand All @@ -13,7 +13,7 @@ body:
label: "🛡️ Security Policy"
description: Please review the security policy before reporting security related issues/bugs.
options:
- label: I agree to have read this project [Security Policy](https://github.com/louislam/dockge/security/policy)
- label: I agree to have read this project [Security Policy](https://github.com/Lorwell/dockge/security/policy)
required: true
- type: textarea
id: steps-to-reproduce
Expand Down
2 changes: 1 addition & 1 deletion .github/DISCUSSION_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ body:
id: no-duplicate-issues
attributes:
label: "⚠️ Please verify that this feature request has NOT been suggested before."
description: "Search in the issues sections by clicking [HERE](https://github.com/louislam/dockge/discussions/categories/feature-request)"
description: "Search existing discussions by clicking [HERE](https://github.com/Lorwell/dockge/discussions/categories/feature-request)"
options:
- label: "I checked and didn't find similar feature request"
required: true
Expand Down
13 changes: 1 addition & 12 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1 @@
# These are supported funding model platforms

github: louislam # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
#patreon: # Replace with a single Patreon username
open_collective: uptime-kuma # 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
#custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
# Funding links can be added here if this fork enables a sponsorship program.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/ask-for-help.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ body:
- type: markdown
attributes:
value: |
⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ Please go to https://github.com/louislam/dockge/discussions/new?category=ask-for-help
Please use https://github.com/Lorwell/dockge/discussions/new?category=ask-for-help for support requests.
- type: checkboxes
id: no-duplicate-issues
attributes:
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body:
id: no-duplicate-issues
attributes:
label: "⚠️ Please verify that this bug has NOT been reported before."
description: "Search in the issues sections by clicking [HERE](https://github.com/louislam/dockge/issues?q=)"
description: "Search existing issues by clicking [HERE](https://github.com/Lorwell/dockge/issues?q=)"
options:
- label: "I checked and didn't find similar issue"
required: true
Expand All @@ -16,7 +16,7 @@ body:
label: "🛡️ Security Policy"
description: Please review the security policy before reporting security related issues/bugs.
options:
- label: I agree to have read this project [Security Policy](https://github.com/louislam/dockge/security/policy)
- label: I agree to have read this project [Security Policy](https://github.com/Lorwell/dockge/security/policy)
required: true
- type: textarea
id: description
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ body:
- type: markdown
attributes:
value: |
⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ Please go to https://github.com/louislam/dockge/discussions/new?category=ask-for-help
Please use https://github.com/Lorwell/dockge/discussions/new?category=feature-request for feature requests.
- type: checkboxes
id: no-duplicate-issues
attributes:
Expand Down
11 changes: 5 additions & 6 deletions .github/ISSUE_TEMPLATE/security.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
---

name: "Security Issue"
about: "Just for alerting @louislam, do not provide any details here"
about: "Do not disclose vulnerability details in a public issue"
title: "Security Issue"
ref: "main"
ref: "master"
labels:

- security

---

DO NOT PROVIDE ANY DETAILS HERE. Please privately report to https://github.com/louislam/dockge/security/advisories/new.
DO NOT PROVIDE ANY DETAILS HERE. Please report the vulnerability privately at
https://github.com/Lorwell/dockge/security/advisories/new.


Why need this issue? It is because GitHub Advisory do not send a notification to @louislam, it is a workaround to do so.

Your GitHub Advisory URL:
There is no need to create a public issue after submitting the advisory.

4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
⚠️⚠️⚠️ Since we do not accept all types of pull requests and do not want to waste your time. Please be sure that you have read pull request rules:
https://github.com/louislam/dockge/blob/master/CONTRIBUTING.md
Please read the contribution guidelines before opening a pull request:
https://github.com/Lorwell/dockge/blob/master/CONTRIBUTING.md

Tick the checkbox if you understand [x]:
- [ ] I have read and understand the pull request rules.
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,23 @@ jobs:
ci:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, ARM, ARM64]
node: [22] # Can be changed
os: [ubuntu-latest, windows-latest, macos-latest]
node: [22]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
run: | # Mainly for Windows
- name: Configure Git line endings
run: |
git config --global core.autocrlf false
git config --global core.eol lf

- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
node-version: ${{ matrix.node }}
cache: npm

- name: Install dependencies
run: npm install
Expand All @@ -40,5 +43,4 @@ jobs:

- name: Build
run: npm run build:frontend
# more things can be add later like tests etc..

132 changes: 132 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
name: Build and push Docker image

on:
workflow_dispatch:

concurrency:
group: dockerhub-dockge-${{ github.ref }}
cancel-in-progress: false

permissions:
contents: read

env:
IMAGE_NAME: docker.io/moailaozi/dockge

jobs:
quality:
name: Application quality gate
runs-on: ubuntu-24.04

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci --no-fund

- name: Validate and build application
run: |
npm run lint
npm run check-ts
npm run build:frontend

- name: Upload frontend bundle
uses: actions/upload-artifact@v4
with:
name: frontend-dist
path: frontend-dist/
if-no-files-found: error
retention-days: 1

build-and-push:
name: Build and publish multi-platform image
needs: quality
runs-on: ubuntu-24.04
timeout-minutes: 120

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Download frontend bundle
uses: actions/download-artifact@v4
with:
name: frontend-dist
path: frontend-dist

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Read and validate image version
id: version
shell: bash
run: |
if [[ "$GITHUB_REF" != "refs/heads/master" ]]; then
echo "Stable images must be published from the master branch."
exit 1
fi

VERSION="$(node --input-type=module -e "import packageJson from './package.json' with { type: 'json' }; process.stdout.write(packageJson.version);")"
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "package.json version must use major.minor.patch format (for example: 1.6.0)."
exit 1
fi

IFS=. read -r MAJOR MINOR PATCH <<< "$VERSION"
echo "full=$VERSION" >> "$GITHUB_OUTPUT"
echo "minor=$MAJOR.$MINOR" >> "$GITHUB_OUTPUT"
echo "major=$MAJOR" >> "$GITHUB_OUTPUT"

- name: Set build metadata
id: metadata
shell: bash
run: |
echo "commit=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
echo "date=$(date --utc '+%Y-%m-%dT%H:%M:%SZ')" >> "$GITHUB_OUTPUT"

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver: docker-container

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
file: docker/Dockerfile
target: release
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
${{ env.IMAGE_NAME }}:${{ steps.version.outputs.full }}
${{ env.IMAGE_NAME }}:${{ steps.version.outputs.minor }}
${{ env.IMAGE_NAME }}:${{ steps.version.outputs.major }}
${{ env.IMAGE_NAME }}:latest
labels: |
org.opencontainers.image.title=Dockge Lorwell Fork
org.opencontainers.image.description=A compose.yaml stack manager with container-level details, logs, and terminals
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.version=${{ steps.version.outputs.full }}
org.opencontainers.image.created=${{ steps.metadata.outputs.date }}
org.opencontainers.image.licenses=MIT
cache-from: type=gha
cache-to: type=gha,mode=max
6 changes: 3 additions & 3 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN }}
password: ${{ github.token }}

- name: Use Node.js 22
uses: actions/setup-node@v4
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ data
stacks
tmp
/private
/stacks-data/
/.npmrc

# Git only
frontend-dist

Loading
Loading