fix(ci): move RPM_REPO_HOST to job-level env, remove step duplication
All checks were successful
poll-upstream / check (push) Successful in 0s
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:
@@ -115,6 +115,8 @@ jobs:
|
|||||||
publish:
|
publish:
|
||||||
needs: package
|
needs: package
|
||||||
runs-on: fedora-43
|
runs-on: fedora-43
|
||||||
|
env:
|
||||||
|
RPM_REPO_HOST: oolon.kosherinata.internal
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -165,8 +167,6 @@ jobs:
|
|||||||
- name: Test SSH connectivity
|
- name: Test SSH connectivity
|
||||||
run: |
|
run: |
|
||||||
ssh -o StrictHostKeyChecking=accept-new "gitea_ci@${RPM_REPO_HOST}" exit
|
ssh -o StrictHostKeyChecking=accept-new "gitea_ci@${RPM_REPO_HOST}" exit
|
||||||
env:
|
|
||||||
RPM_REPO_HOST: oolon.kosherinata.internal
|
|
||||||
|
|
||||||
- name: Sync RPMs to repo
|
- name: Sync RPMs to repo
|
||||||
run: |
|
run: |
|
||||||
@@ -176,12 +176,8 @@ jobs:
|
|||||||
--chmod D755,F644 \
|
--chmod D755,F644 \
|
||||||
rpms/*.rpm \
|
rpms/*.rpm \
|
||||||
"gitea_ci@${RPM_REPO_HOST}:/var/www/rpm/fedora/${{ matrix.fedora_version }}/x86_64/"
|
"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
|
- name: Update repo metadata
|
||||||
run: |
|
run: |
|
||||||
ssh "gitea_ci@${RPM_REPO_HOST}" \
|
ssh "gitea_ci@${RPM_REPO_HOST}" \
|
||||||
"cd /var/www/rpm/fedora/${{ matrix.fedora_version }}/x86_64 && createrepo_c --update ."
|
"cd /var/www/rpm/fedora/${{ matrix.fedora_version }}/x86_64 && createrepo_c --update ."
|
||||||
env:
|
|
||||||
RPM_REPO_HOST: oolon.kosherinata.internal
|
|
||||||
|
|||||||
Reference in New Issue
Block a user