mirror of
https://github.com/Suwayomi/docker-tachidesk.git
synced 2025-12-10 06:42:12 +01:00
Build and Push Slim Containers
This commit is contained in:
19
.github/workflows/container.yml
vendored
19
.github/workflows/container.yml
vendored
@@ -174,7 +174,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x,linux/riscv64
|
platforms: linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x,linux/riscv64
|
||||||
push: true
|
push: false
|
||||||
build-args: |
|
build-args: |
|
||||||
BUILD_DATE=${{ steps.get_latest_release_metadata.outputs.build_date }}
|
BUILD_DATE=${{ steps.get_latest_release_metadata.outputs.build_date }}
|
||||||
TACHIDESK_RELEASE_TAG=${{ steps.get_latest_release_metadata.outputs.release_tag }}
|
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:${{ inputs.tachidesk_release_type }}
|
||||||
ghcr.io/suwayomi/tachidesk:${{ steps.get_latest_release_metadata.outputs.release_tag }}
|
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)
|
- name: Send a Discord message through the webhook (preview build)
|
||||||
if: inputs.do_upload && inputs.tachidesk_release_type == 'preview'
|
if: inputs.do_upload && inputs.tachidesk_release_type == 'preview'
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user