From e6052f5926f9909510d79ab79f263a76583c9dd7 Mon Sep 17 00:00:00 2001 From: Anton Titovets Date: Mon, 5 May 2025 15:44:08 +0300 Subject: [PATCH] Fastfix --- .github/workflows/apt.yml | 140 -------------------------------------- public.key | Bin 7596 -> 0 bytes 2 files changed, 140 deletions(-) delete mode 100644 .github/workflows/apt.yml delete mode 100644 public.key diff --git a/.github/workflows/apt.yml b/.github/workflows/apt.yml deleted file mode 100644 index 2f57ea83c8..0000000000 --- a/.github/workflows/apt.yml +++ /dev/null @@ -1,140 +0,0 @@ -name: Update APT Repo - -on: - workflow_dispatch: - release: - types: [published] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout repo - uses: actions/checkout@v4 - - - name: Setup GPG - env: - GPG_PASSPHRASE: ${{ secrets.ENC_JSON }} - GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} - run: | - # Создаем директорию GPG - mkdir -p ~/.gnupg - chmod 700 ~/.gnupg - - # Настройка GPG для работы без терминала - cat < ~/.gnupg/gpg.conf - batch - no-tty - use-agent - pinentry-mode loopback - EOF - - # Сохраняем пароль во временный файл - echo "$GPG_PASSPHRASE" > ~/gpg-passphrase.txt - chmod 600 ~/gpg-passphrase.txt - - # Импортируем приватный ключ - echo "$GPG_PRIVATE_KEY" | gpg --batch --pinentry-mode loopback --passphrase-file ~/gpg-passphrase.txt --import - - # Проверяем, что ключ импортирован - gpg --list-secret-keys - - # Удаляем пароль из файловой системы - rm ~/gpg-passphrase.txt - - - name: Install dependencies - run: | - sudo apt update - sudo apt install -y reprepro nginx gnupg - - - name: Find and download correct .deb file - run: | - REPO_NAME="${{ github.repository }}" - - # Получаем ID последнего релиза - LATEST_RELEASE_JSON=$(mktemp) - curl -s -H "Authorization: Bearer ${{ secrets.TOKEN }}" \ - -H "Accept: application/vnd.github+json" \ - "https://api.github.com/repos/$REPO_NAME/releases/latest" > "$LATEST_RELEASE_JSON" - - RELEASE_ID=$(jq -r '.id' "$LATEST_RELEASE_JSON") - if [[ "$RELEASE_ID" == "null" ]]; then - echo "❌ Failed to get release ID" - exit 1 - fi - - # Получаем список ассетов - ASSET_JSON=$(mktemp) - curl -s -H "Authorization: Bearer ${{ secrets.TOKEN }}" \ - -H "Accept: application/vnd.github+json" \ - "https://api.github.com/repos/$REPO_NAME/releases/$RELEASE_ID/assets" > "$ASSET_JSON" - - # Ищем первый файл, подходящий под маску 'oint_*_all_ru.deb' - FILENAME=$(jq -r '.[] | select(.name | startswith("oint_") and endswith("_all_ru.deb")) | .name' "$ASSET_JSON" | head -n 1) - - if [[ -z "$FILENAME" || "$FILENAME" == "null" ]]; then - echo "❌ No matching file found (mask: oint_*_all_ru.deb)" - echo "📎 Available assets:" - jq -r '.[].name' "$ASSET_JSON" - exit 1 - fi - - echo "📎 Selected file: $FILENAME" - - # Получаем URL файла - ASSET_URL=$(jq -r ".[] | select(.name == \"$FILENAME\") | .url" "$ASSET_JSON") - - # Скачиваем .deb - echo "📥 Downloading: $FILENAME" - curl -L -o "oint.deb" \ - -H "Authorization: Bearer ${{ secrets.TOKEN }}" \ - -H "Accept: application/octet-stream" \ - "$ASSET_URL" - - # Проверяем, что это настоящий .deb - echo "🔍 Verifying file type..." - file "oint.deb" - ar tvf "oint.deb" || echo "⚠️ This may not be a valid .deb file!" - - - name: Setup repo structure - run: | - mkdir -p oint/{conf,dists,pool/main} - cat < oint/conf/distributions - Origin: bayselonarrend - Label: oint - Suite: stable - Codename: focal - Architectures: amd64 - Components: main - Description: OpenIntegrations CLI repo - SignWith: ${{ secrets.GPG_KEY_ID }} - EOT - - - name: Add package to repo - env: - GPG_PASSPHRASE: ${{ secrets.ENC_JSON }} - run: | - cd oint - - # Установить максимальное доверие к ключу - echo "${{ secrets.GPG_KEY_ID }}:6:" | gpg --import-ownertrust - - # Добавляем пакет в репозиторий с подробным логом - GPG="gpg --verbose --pinentry-mode loopback --passphrase=$GPG_PASSPHRASE" \ - reprepro includedeb focal ../oint.deb - - - name: Deploy to GitHub Pages - run: | - cd oint - git init - git config user.name "Vitaly the Alpaca (bot) " - git config user.email "vitaly.the.alpaca@gmail.com" - git add . - git commit -m "Update APT repo" - git branch -M gh-pages - git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} - git push -f origin gh-pages - - - name: Cleanup - run: | - rm -rf oint diff --git a/public.key b/public.key deleted file mode 100644 index 39b53cda2f3757c23a06a21491dc631b2fc444ea..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7596 zcmc(kM{k156^6fcr2L2M(G?xcA`8HUUTqBQz&6Dc11^*wpX7OldlMzPN|bCO1mAo! zr@W`k%$eb@fB7Z)?Nf^GqKBv&wW2>o9a^36e2Pj@gWfW4btpzW?P=3f|2yw5(I2Bf zgzqN0jhfI+pjt++Q7T%%Q-k)%v&5$uRT%B@eiPohP!*wgh3hpM!#|4>$hZMXIvPYn zB$NYfhu(ISq@9mGkywq^yrrYBXddmO6w59)<{vFRU{O>$dXp035 zOC+zLyF=m#1jW#PMn{*=C-y6;3E!Uf4t-s)ePG)MtqBNUq742RMR5?c&^(Wx(DM(! z&XF}m?vef)cqZ68fvU)RBVZ^aX^yvx{8q8c=Lo%Jo?2Umw+gQNFn-H;m-jbh**~PW z$fpinkLT}U`eF2&u?`#^Jl4RD+hD~V_|1ty^ccKdr8kA91@u|$|H9@1JZ(nrK~tk$ zMal;6R---?Tad(}11Rp$@DASyU;XgSpy`e8flQf2ImTl|Vhq9@7A%pu1@RZOvw-1% z?lx~VJaf;;nN|Xt7P9+DYa_o0%>(^uq}O!3@6U>l%v_ad@F;0@59=21v@tn&B_!f>}JHcNOGcV`1!;e3kw{|22=w zJpcPVG8X?Sm(=>Nx%BVjzb6h|xH@2T7T)96C7w%=J#W~WAjT`KbqzR%Sj?d^7IP@- z%;O4P$YNa?+nY$4z&B;|NZvG&)u44teCyCRLH7>L2|rKxoS-Y@@srQLzr%r)Pf7YTfPom;bD(Ovj$5*O$11blHmBPdJcLKiG& z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