2323 echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
2424 echo "> External trigger running off of master branch. To disable this trigger, add \`filezilla_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
2525 printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
26- EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20 /community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
26+ EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21 /community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2727 && awk '/^P:'"filezilla"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://')
2828 echo "Type is \`alpine_repo\`" >> $GITHUB_STEP_SUMMARY
2929 if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
@@ -44,16 +44,18 @@ jobs:
4444 token=$(curl -sX GET \
4545 "https://ghcr.io/token?scope=repository%3Alinuxserver%2Ffilezilla%3Apull" \
4646 | jq -r '.token')
47- multidigest=$(curl -s \
48- --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
49- --header "Authorization: Bearer ${token}" \
50- "https://ghcr.io/v2/${image}/manifests/${tag}" \
51- | jq -r 'first(.manifests[].digest)')
52- digest=$(curl -s \
53- --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
54- --header "Authorization: Bearer ${token}" \
55- "https://ghcr.io/v2/${image}/manifests/${multidigest}" \
56- | jq -r '.config.digest')
47+ multidigest=$(curl -s \
48+ --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
49+ --header "Accept: application/vnd.oci.image.index.v1+json" \
50+ --header "Authorization: Bearer ${token}" \
51+ "https://ghcr.io/v2/${image}/manifests/${tag}")
52+ multidigest=$(jq -r ".manifests[] | select(.platform.architecture == \"amd64\").digest?" <<< "${multidigest}")
53+ digest=$(curl -s \
54+ --header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
55+ --header "Accept: application/vnd.oci.image.manifest.v1+json" \
56+ --header "Authorization: Bearer ${token}" \
57+ "https://ghcr.io/v2/${image}/manifests/${multidigest}" \
58+ | jq -r '.config.digest')
5759 image_info=$(curl -sL \
5860 --header "Authorization: Bearer ${token}" \
5961 "https://ghcr.io/v2/${image}/blobs/${digest}")
7779 if [ "${EXT_RELEASE}" == "${IMAGE_VERSION}" ]; then
7880 echo "Version \`${EXT_RELEASE}\` already pushed, exiting" >> $GITHUB_STEP_SUMMARY
7981 exit 0
80- elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.20 /community/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"filezilla"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
82+ elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.21 /community/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"filezilla"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
8183 echo "New version \`${EXT_RELEASE}\` found; but not all arch repos updated yet; exiting" >> $GITHUB_STEP_SUMMARY
8284 FAILURE_REASON="New version ${EXT_RELEASE} for filezilla tag latest is detected, however not all arch repos are updated yet. Will try again later."
8385 curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
0 commit comments