Build and Push Slim Containers

This commit is contained in:
Mitchell Syer
2025-01-12 15:40:18 -05:00
committed by GitHub
parent 2080dd971b
commit 4ca430b882

View File

@@ -174,7 +174,7 @@ jobs:
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x,linux/riscv64
push: true
push: false
build-args: |
BUILD_DATE=${{ steps.get_latest_release_metadata.outputs.build_date }}
TACHIDESK_RELEASE_TAG=${{ steps.get_latest_release_metadata.outputs.release_tag }}
@@ -186,6 +186,23 @@ jobs:
ghcr.io/suwayomi/tachidesk:${{ inputs.tachidesk_release_type }}
ghcr.io/suwayomi/tachidesk:${{ steps.get_latest_release_metadata.outputs.release_tag }}
- name: Create slim container
uses: kitabisa/docker-slim-action@v1
env:
DSLIM_HTTP_PROBE: false
DSLIM_PRESERVE_PATH: /opt/java/openjdk/lib,/home/suwayomi/.local/share/Tachidesk
with:
target: ghcr.io/suwayomi/tachidesk:${{ inputs.tachidesk_release_type }}
tag: '${{ inputs.tachidesk_release_type }}-slim'
- name: Tag slim container and push registery to repository
run: |
docker tag ghcr.io/suwayomi/tachidesk:${{ inputs.tachidesk_release_type }}-slim ghcr.io/suwayomi/tachidesk:${{ steps.get_latest_release_metadata.outputs.release_tag }}-slim
if [ "${{ inputs.tachidesk_release_type }}" == "stable" ]; then
docker tag ghcr.io/suwayomi/tachidesk:${{ inputs.tachidesk_release_type }}-slim ghcr.io/suwayomi/tachidesk:latest-slim
fi
docker image push "ghcr.io/suwayomi/tachidesk" --all-tags
- name: Send a Discord message through the webhook (preview build)
if: inputs.do_upload && inputs.tachidesk_release_type == 'preview'
run: |