Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Revert "chore(ci): try to fix flaky "Merge manifest lists""
Elian Doran14f521fdd7ca
diff --git a/.github/workflows/main-docker.yml b/.github/workflows/main-docker.ymlindex b302b99180..32e4d8ba5c 100644--- a/.github/workflows/main-docker.yml+++ b/.github/workflows/main-docker.yml@@ -271,16 +271,13 @@ jobs:REF_NAME=$(echo "${GITHUB_REF}" | sed 's/refs\/heads\///' | sed 's/refs\/tags\///')# Create and push the manifest list with both the branch/tag name and the commit SHA- # Note: Images are only pushed to GHCR during build, so we always reference GHCR sources- # and copy to DockerHub using imagetools createdocker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \-t ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}:${REF_NAME} \$(printf '${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)- # Copy from GHCR to DockerHub (source digests only exist on GHCR)- docker buildx imagetools create \+ docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \-t ${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:${REF_NAME} \- $(printf '${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)+ $(printf '${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)# If the ref is a tag, also tag the image as stable as this is part of a 'release'# and only go in the `if` if there is NOT a `-` in the tag's name, due to tagging of `-alpha`, `-beta`, etc...@@ -290,10 +287,9 @@ jobs:-t ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}:stable \$(printf '${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)- # Copy stable tag from GHCR to DockerHub- docker buildx imagetools create \+ docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \-t ${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:stable \- $(printf '${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)+ $(printf '${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME }}@sha256:%s ' *)# Small delay to ensure stable tag is fully propagatedsleep 5@@ -305,7 +301,7 @@ jobs:docker buildx imagetools create \-t ${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:latest \- ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }}:stable+ ${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME }}:stablefi