mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Updated the Solus workflow’s default container image from ghcr.io/getsolus/solus:latest to docker.io/silkeh/solus:latest in both workflow input defaults and job env fallback, so the workflow no longer depends on a missing GHCR tag by default.
Added explicit error handling around docker pull "$SOLUS_IMAGE" with a clearer remediation message telling users to override solus_image if pull fails.
This commit is contained in:
10
.github/workflows/solus-eopkg-build.yml
vendored
10
.github/workflows/solus-eopkg-build.yml
vendored
@@ -10,7 +10,7 @@ on:
|
|||||||
solus_image:
|
solus_image:
|
||||||
description: "Solus container image"
|
description: "Solus container image"
|
||||||
required: false
|
required: false
|
||||||
default: "ghcr.io/getsolus/solus:latest"
|
default: "docker.io/silkeh/solus:latest"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
@@ -24,7 +24,7 @@ jobs:
|
|||||||
build-eopkg:
|
build-eopkg:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
SOLUS_IMAGE: ${{ inputs.solus_image || 'ghcr.io/getsolus/solus:latest' }}
|
SOLUS_IMAGE: ${{ inputs.solus_image || 'docker.io/silkeh/solus:latest' }}
|
||||||
PACKAGE_YML: ${{ inputs.package_yml || 'packaging/solus/package.yml' }}
|
PACKAGE_YML: ${{ inputs.package_yml || 'packaging/solus/package.yml' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -48,7 +48,11 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker pull "$SOLUS_IMAGE"
|
if ! docker pull "$SOLUS_IMAGE"; then
|
||||||
|
echo "Failed to pull SOLUS_IMAGE=$SOLUS_IMAGE" >&2
|
||||||
|
echo "Set workflow input 'solus_image' to a valid image that provides eopkg/ypkg." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
docker run --rm \
|
docker run --rm \
|
||||||
-v "$PWD":/workspace \
|
-v "$PWD":/workspace \
|
||||||
|
|||||||
Reference in New Issue
Block a user