From 0eea98acc9170d1b400aca456ca71f461df8e805 Mon Sep 17 00:00:00 2001 From: Kjeld Schouten-Lebbing Date: Fri, 3 Feb 2023 22:20:48 +0100 Subject: [PATCH] Create daily.yaml Signed-off-by: Kjeld Schouten-Lebbing --- .github/workflows/daily.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/daily.yaml b/.github/workflows/daily.yaml index 04ffdce4937..c7875ca1364 100644 --- a/.github/workflows/daily.yaml +++ b/.github/workflows/daily.yaml @@ -96,7 +96,7 @@ jobs: echo "Attempting to update sources of ${chartname}..." echo "Using go-yq verion: <$(go-yq -V)>" # Get all sources (except truecharts) - curr_sources=$(go-yq '.sources[] | select(. != "https://github.com/truecharts*" and . != "https://ghcr*" and . != "https://hub.docker*" and . != "https://fleet.*" and . != "https://github.com/truecharts/containers/tree/master/mirror/*" and . != "https://public.ecr*" and . != "https://ocir*" and . != "https://gcr*" and . != "https://azurecr*" and . != "https://quay*" and . != "https://lscr*" and . != "https://github.com/truecharts/containers*" and . == "http*")' "${chart}/Chart.yaml") + curr_sources=$(go-yq '.sources[] | select(. != "https://github.com/truecharts*" and . != "https://ghcr*" and . != "docker.io*" and . != "https://docker.io*" and . != "https://hub.docker*" and . != "https://fleet.*" and . != "https://github.com/truecharts/containers/tree/master/mirror/*" and . != "https://public.ecr*" and . != "https://ocir*" and . != "https://gcr*" and . != "https://azurecr*" and . != "https://quay*" and . != "https://lscr*" and . != "https://github.com/truecharts/containers*" and . == "http*")' "${chart}/Chart.yaml") # Empty sources list in-place go-yq -i 'del(.sources.[])' "${chart}/Chart.yaml" # Add truechart source @@ -118,8 +118,10 @@ jobs: prefix="https://" elif echo ${container} | grep 'ocir'; then prefix="https://" - elif echo ${container} | grep 'https://hub.docker'; then - prefix="" + elif echo ${container} | grep 'hub.docker'; then + prefix="https://" + elif echo ${container} | grep 'docker.io'; then + prefix="https://" elif echo ${container} | grep 'hub.docker'; then prefix="https://" fi @@ -289,7 +291,7 @@ jobs: lock-threads: runs-on: ubuntu-latest steps: - - uses: dessant/lock-threads@c1b35aecc5cdb1a34539d14196df55838bb2f836 # v4 + - uses: dessant/lock-threads@v4 with: github-token: ${{ secrets.BOT_TOKEN }} issue-inactive-days: '7'