Merge fb5d1b9cde8e593265a548f652d15b9594c090aa into 00bb120288af84f3764e684b9b2bab70d5028219

This commit is contained in:
Andre Wei 2026-09-21 06:06:37 -07:00 committed by GitHub
commit 7b7aaea24f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -362,6 +362,7 @@ jobs:
id: check
run: echo "is_enabled=${{ secrets.DOCKER_HUB_USERNAME != '' }}" >> $GITHUB_OUTPUT
build:
name: Build
needs: [js, go, go-plugins, go-windows, go-lint, i18n-lint, git-version, check-push-enabled, validate-migrations]
@ -382,6 +383,12 @@ jobs:
run: |
PLATFORM=$(echo ${{ matrix.platform }} | tr '/' '_')
echo "PLATFORM=$PLATFORM" >> $GITHUB_ENV
- name: Get Lowercase Name
id: lowercase_name
run: |
REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
echo "REPO_LOWER=$REPO_LOWER" >> $GITHUB_ENV
- uses: actions/checkout@v7
@ -443,7 +450,7 @@ jobs:
GIT_TAG=${{ env.GIT_TAG }}
outputs: |
type=image,name=${{ steps.docker.outputs.hub_repository }},push-by-digest=true,name-canonical=true,push=${{ steps.docker.outputs.hub_enabled }}
type=image,name=ghcr.io/${{ github.repository }},push-by-digest=true,name-canonical=true,push=true
type=image,name=ghcr.io/${{ env.REPO_LOWER }},push-by-digest=true,name-canonical=true,push=true
- name: Export digest
if: env.IS_LINUX == 'true' && env.IS_DOCKER_PUSH_CONFIGURED == 'true' && env.IS_ARMV5 == 'false'
@ -469,8 +476,6 @@ jobs:
runs-on: ubuntu-latest
needs: [build, check-push-enabled]
if: needs.check-push-enabled.outputs.is_enabled == 'true'
env:
REGISTRY_IMAGE: ghcr.io/${{ github.repository }}
steps:
- uses: actions/checkout@v7
@ -514,6 +519,14 @@ jobs:
path: /tmp/digests
pattern: digests-*
merge-multiple: true
- name: Get Lowercase Name
id: lowercase_name
run: |
REPO_LOWER=$(echo "${{ github.repository }}" | tr '[:upper:]' '[:lower:]')
echo "REPO_LOWER=$REPO_LOWER" >> $GITHUB_ENV
REGISTRY_IMAGE="ghcr.io/$REPO_LOWER"
echo "REGISTRY_IMAGE=$REGISTRY_IMAGE" >> $GITHUB_ENV
- name: Prepare Docker Buildx
uses: ./.github/actions/prepare-docker
@ -549,8 +562,8 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
for artifact in $(gh api repos/${{ github.repository }}/actions/artifacts | jq -r '.artifacts[] | select(.name | startswith("digests-")) | .id'); do
gh api --method DELETE repos/${{ github.repository }}/actions/artifacts/$artifact
for artifact in $(gh api repos/${{ env.REPO_LOWER }}/actions/artifacts | jq -r '.artifacts[] | select(.name | startswith("digests-")) | .id'); do
gh api --method DELETE repos/${{ env.REPO_LOWER }}/actions/artifacts/$artifact
done
msi: