mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-09 13:58:14 -05:00
Merge pull request #1351 from DrewThomasson/DrewThomasson-docker-build-patch-1
This commit is contained in:
31
.github/workflows/Docker-Build.yml
vendored
31
.github/workflows/Docker-Build.yml
vendored
@@ -126,15 +126,36 @@ jobs:
|
||||
echo "DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }}"
|
||||
echo "GIT_HASH=${GIT_HASH}"
|
||||
echo "RELEASE_TAG=${RELEASE_TAG}"
|
||||
|
||||
- name: Build and Push Release Docker Image
|
||||
# ==================== CPU Build (linux/amd64 + linux/arm64) ====================
|
||||
- name: Build and Push CPU Docker Image
|
||||
run: |
|
||||
cd ~/E2ADockerBuild/ebook2audiobook
|
||||
CPU_TAG_1="${{ secrets.DOCKER_USERNAME }}/ebook2audiobook:${GIT_HASH}-cpu"
|
||||
CPU_TAG_2="${{ secrets.DOCKER_USERNAME }}/ebook2audiobook:${RELEASE_TAG}-cpu"
|
||||
CPU_TAG_3="${{ secrets.DOCKER_USERNAME }}/ebook2audiobook:cpu"
|
||||
docker buildx build --pull --platform linux/amd64,linux/arm64 \
|
||||
-t ${{ secrets.DOCKER_USERNAME }}/ebook2audiobook:${GIT_HASH} \
|
||||
-t ${{ secrets.DOCKER_USERNAME }}/ebook2audiobook:${RELEASE_TAG} \
|
||||
-t ${{ secrets.DOCKER_USERNAME }}/ebook2audiobook:latest \
|
||||
--build-arg DEVICE_TAG=cpu \
|
||||
--build-arg DOCKER_DEVICE_STR='{"name": "cpu", "os": "manylinux_2_28", "arch": "x86_64", "pyvenv": [3, 12], "tag": "cpu", "note": "CPU only"}' \
|
||||
-t "$CPU_TAG_1" \
|
||||
-t "$CPU_TAG_2" \
|
||||
-t "$CPU_TAG_3" \
|
||||
--push .
|
||||
|
||||
# ==================== CUDA 12.8 Build (linux/amd64 only) ====================
|
||||
- name: Build and Push CUDA 12.8 Docker Image
|
||||
run: |
|
||||
cd ~/E2ADockerBuild/ebook2audiobook
|
||||
CUDA_TAG_1="${{ secrets.DOCKER_USERNAME }}/ebook2audiobook:${GIT_HASH}-cu128"
|
||||
CUDA_TAG_2="${{ secrets.DOCKER_USERNAME }}/ebook2audiobook:${RELEASE_TAG}-cu128"
|
||||
CUDA_TAG_3="${{ secrets.DOCKER_USERNAME }}/ebook2audiobook:cu128"
|
||||
docker buildx build --pull --platform linux/amd64 \
|
||||
--build-arg DEVICE_TAG=cu128 \
|
||||
--build-arg DOCKER_DEVICE_STR='{"name": "cuda", "os": "manylinux_2_28", "arch": "x86_64", "pyvenv": [3, 12], "tag": "cu128", "note": "CUDA 12.8"}' \
|
||||
-t "$CUDA_TAG_1" \
|
||||
-t "$CUDA_TAG_2" \
|
||||
-t "$CUDA_TAG_3" \
|
||||
--push .
|
||||
|
||||
|
||||
- name: Prune docker & buildx
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user