This commit is contained in:
Timothy Jaeryang Baek
2026-06-01 14:38:49 -07:00
parent 5062f9958f
commit 8862210139
2 changed files with 26 additions and 4 deletions
+23 -1
View File
@@ -143,6 +143,7 @@ jobs:
merge:
runs-on: ubuntu-latest
needs: [build]
if: !cancelled()
permissions:
contents: read
packages: write
@@ -168,16 +169,32 @@ jobs:
echo "FULL_IMAGE_NAME=${REGISTRY}/${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
- name: Download digests
id: download
uses: actions/download-artifact@v5
with:
pattern: digests-${{ matrix.variant.name }}-*
path: /tmp/digests
merge-multiple: true
continue-on-error: true
- name: Check digests
id: check
run: |
count=$(find /tmp/digests -type f 2>/dev/null | wc -l | tr -d ' ')
echo "digest_count=$count" >> $GITHUB_OUTPUT
if [ "$count" -lt 2 ]; then
echo "::warning::${{ matrix.variant.name }}: found $count digest(s), need 2 (one per arch). Skipping merge."
echo "skip=true" >> $GITHUB_OUTPUT
else
echo "skip=false" >> $GITHUB_OUTPUT
fi
- name: Set up Docker Buildx
if: steps.check.outputs.skip != 'true'
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
if: steps.check.outputs.skip != 'true'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
@@ -185,6 +202,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata for Docker images
if: steps.check.outputs.skip != 'true'
id: meta
uses: docker/metadata-action@v5
with:
@@ -201,6 +219,7 @@ jobs:
${{ matrix.variant.suffix != '' && format('suffix={0},onlatest=true', matrix.variant.suffix) || '' }}
- name: Create manifest list and push
if: steps.check.outputs.skip != 'true'
working-directory: /tmp/digests
run: |
docker buildx imagetools create \
@@ -208,12 +227,15 @@ jobs:
$(printf '${{ env.FULL_IMAGE_NAME }}@sha256:%s ' *)
- name: Inspect image
if: steps.check.outputs.skip != 'true'
run: |
docker buildx imagetools inspect ${{ env.FULL_IMAGE_NAME }}:${{ steps.meta.outputs.version }}
copy-to-dockerhub:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
if: >-
!cancelled() &&
(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
needs: [merge]
continue-on-error: true
strategy:
@@ -215,9 +215,9 @@
<div class="flex flex-col w-full mt-2">
<div class=" mb-1 text-xs text-gray-500">
{$i18n.t('Channel Name')}
<span class="text-xs text-gray-200 dark:text-gray-800 ml-0.5"
>{(type === 'dm' ? $i18n.t('Optional') : '')}</span
>
<span class="text-xs text-gray-200 dark:text-gray-800 ml-0.5">
{#if type === 'dm'}{$i18n.t('Optional')}{/if}
</span>
</div>
<div class="flex-1">