From 6deae8fd0a155ec46c2fb6a5b341a151463ccee7 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Mon, 26 Dec 2022 11:29:00 +0100 Subject: [PATCH] scripts: disable uploads to grimler.se Grimler.se will mirror packages.termux.dev from now on, so that we have a single origin repo and can use tools like mirrorbits. --- .github/workflows/packages.yml | 46 ---------------------------------- 1 file changed, 46 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 0cbc57d7be..5866b0f02b 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -288,49 +288,3 @@ jobs: fi fi done - - name: Upload to grimler.se - # Run even if upload to packages.termux.dev failed: - if: always() - env: - REPOSITORY_URL: https://aptly-api.grimler.se - run: | - GITHUB_SHA=${{ github.sha }} - APTLY_API_AUTH=${{ secrets.APTLY_API_AUTH }} - - source scripts/aptly_api.sh - - for repo in $(jq --raw-output 'keys | .[]' repo.json); do - export REPOSITORY_NAME=$(jq --raw-output '.["'$repo'"].name' repo.json) - export REPOSITORY_DISTRIBUTION=$(jq --raw-output '.["'$repo'"].distribution' repo.json) - - # Upload file to temporary directory. - uploaded_files=false - shopt -s nullglob - - if [ -f debs/built_${REPOSITORY_NAME}_packages.txt ]; then - for filename in $(cat debs/built_${REPOSITORY_NAME}_packages.txt | sed -E 's/(..*)/debs\/\1_\*.deb debs\/\1-static_\*.deb/g'); do - if ! aptly_upload_file "$filename"; then - exit 1 - fi - - uploaded_files=true - done - shopt -u nullglob - - # Publishing repository changes. - if [ "$uploaded_files" = "true" ]; then - if ! aptly_add_to_repo; then - exit 1 - fi - - # Usually temporary directory is deleted automatically, but in certain cases it is left. - aptly_delete_dir - - # grimler.se mirror is signed manually, can't publish - # through CI - # if ! aptly_publish_repo; then - # exit 1 - # fi - fi - fi - done