fix(ci): move RPM_REPO_HOST to job-level env, remove step duplication
All checks were successful
poll-upstream / check (push) Successful in 0s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-27 09:25:26 +03:00
parent cacdbebbf7
commit 54cffcfe81

View File

@@ -115,6 +115,8 @@ jobs:
publish:
needs: package
runs-on: fedora-43
env:
RPM_REPO_HOST: oolon.kosherinata.internal
strategy:
fail-fast: false
matrix:
@@ -165,8 +167,6 @@ jobs:
- name: Test SSH connectivity
run: |
ssh -o StrictHostKeyChecking=accept-new "gitea_ci@${RPM_REPO_HOST}" exit
env:
RPM_REPO_HOST: oolon.kosherinata.internal
- name: Sync RPMs to repo
run: |
@@ -176,12 +176,8 @@ jobs:
--chmod D755,F644 \
rpms/*.rpm \
"gitea_ci@${RPM_REPO_HOST}:/var/www/rpm/fedora/${{ matrix.fedora_version }}/x86_64/"
env:
RPM_REPO_HOST: oolon.kosherinata.internal
- name: Update repo metadata
run: |
ssh "gitea_ci@${RPM_REPO_HOST}" \
"cd /var/www/rpm/fedora/${{ matrix.fedora_version }}/x86_64 && createrepo_c --update ."
env:
RPM_REPO_HOST: oolon.kosherinata.internal