Skip to content

Commit

Permalink
Build and Push Slim Containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 authored Jan 12, 2025
1 parent 2080dd9 commit 4ca430b
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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: |
Expand Down

0 comments on commit 4ca430b

Please sign in to comment.