v1.8.0 #429

Merged
LukeGus merged 198 commits from dev-1.8.0 into main 2025-11-05 16:36:16 +00:00
2 changed files with 117 additions and 459 deletions
Showing only changes of commit e6de7e5c03 - Show all commits

View File

@@ -6,11 +6,14 @@ on:
version: version:
description: "Version to build (e.g., 1.8.0)" description: "Version to build (e.g., 1.8.0)"
required: true required: true
production: build_type:
description: "Is this a production build?" description: "Build type"
required: true required: true
default: false default: "Development"
type: boolean type: choice
options:
- Development
- Production
jobs: jobs:
build: build:
@@ -33,29 +36,25 @@ jobs:
id: tags id: tags
run: | run: |
VERSION=${{ github.event.inputs.version }} VERSION=${{ github.event.inputs.version }}
PROD=${{ github.event.inputs.production }} BUILD_TYPE=${{ github.event.inputs.build_type }}
TAGS=() TAGS=()
ALL_TAGS=() ALL_TAGS=()
if [ "$PROD" = "true" ]; then if [ "$BUILD_TYPE" = "Production" ]; then
# Production build → push release + latest to both GHCR and Docker Hub
TAGS+=("release-$VERSION" "latest") TAGS+=("release-$VERSION" "latest")
for tag in "${TAGS[@]}"; do for tag in "${TAGS[@]}"; do
ALL_TAGS+=("ghcr.io/lukegus/termix:$tag") ALL_TAGS+=("ghcr.io/lukegus/termix:$tag")
ALL_TAGS+=("docker.io/bugattiguy527/termix:$tag") ALL_TAGS+=("docker.io/bugattiguy527/termix:$tag")
done done
else else
# Dev build → push only dev-x.x.x to GHCR
TAGS+=("dev-$VERSION") TAGS+=("dev-$VERSION")
for tag in "${TAGS[@]}"; do for tag in "${TAGS[@]}"; do
ALL_TAGS+=("ghcr.io/lukegus/termix:$tag") ALL_TAGS+=("ghcr.io/lukegus/termix:$tag")
done done
fi fi
echo "ALL_TAGS=${ALL_TAGS[*]}" >> $GITHUB_ENV echo "ALL_TAGS=$(printf '%s\n' "${ALL_TAGS[@]}")" >> $GITHUB_ENV
echo "All tags to build:"
printf '%s\n' "${ALL_TAGS[@]}"
- name: Login to GHCR - name: Login to GHCR
uses: docker/login-action@v3 uses: docker/login-action@v3
@@ -65,7 +64,7 @@ jobs:
password: ${{ secrets.GHCR_TOKEN }} password: ${{ secrets.GHCR_TOKEN }}
- name: Login to Docker Hub (prod only) - name: Login to Docker Hub (prod only)
if: ${{ github.event.inputs.production == 'true' }} if: ${{ github.event.inputs.build_type == 'Production' }}
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
username: bugattiguy527 username: bugattiguy527

File diff suppressed because it is too large Load Diff