CI: the artifact globs still said 'lab', the packages are 'labctl'
Some checks failed
CI/CD / lint (push) Successful in 45s
CI/CD / typecheck (push) Successful in 1m10s
CI/CD / test (push) Successful in 1m12s
CI/CD / build (push) Successful in 2m25s
CI/CD / publish-deb (push) Successful in 13s
CI/CD / publish-rpm (push) Failing after 33s
Some checks failed
CI/CD / lint (push) Successful in 45s
CI/CD / typecheck (push) Successful in 1m10s
CI/CD / test (push) Successful in 1m12s
CI/CD / build (push) Successful in 2m25s
CI/CD / publish-deb (push) Successful in 13s
CI/CD / publish-rpm (push) Failing after 33s
publish-rpm failed on its first real run: the build job's upload path bastion/dist/lab-*.rpm matches nothing (nfpm creates labctl-*.rpm), so the rpm-packages artifact was never created. The deb glob lab*.deb only worked by accident of the underscore naming. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V6HNx6cyr4J4CiMGCy1wkF
This commit is contained in:
@@ -160,14 +160,14 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: rpm-packages
|
name: rpm-packages
|
||||||
path: bastion/dist/lab-*.rpm
|
path: bastion/dist/labctl-*.rpm
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
- name: Upload DEB artifacts
|
- name: Upload DEB artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: deb-packages
|
name: deb-packages
|
||||||
path: bastion/dist/lab*.deb
|
path: bastion/dist/labctl*.deb
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
|
||||||
# -- Release pipeline (main branch push only) --------------
|
# -- Release pipeline (main branch push only) --------------
|
||||||
@@ -198,7 +198,7 @@ jobs:
|
|||||||
GITEA_OWNER: ${{ env.GITEA_OWNER }}
|
GITEA_OWNER: ${{ env.GITEA_OWNER }}
|
||||||
GITEA_REPO: lab
|
GITEA_REPO: lab
|
||||||
run: |
|
run: |
|
||||||
for RPM_FILE in dist/lab-*.rpm; do
|
for RPM_FILE in dist/labctl-*.rpm; do
|
||||||
[ -f "$RPM_FILE" ] || continue
|
[ -f "$RPM_FILE" ] || continue
|
||||||
RPM_VERSION=$(rpm -qp --queryformat '%{VERSION}-%{RELEASE}' "$RPM_FILE")
|
RPM_VERSION=$(rpm -qp --queryformat '%{VERSION}-%{RELEASE}' "$RPM_FILE")
|
||||||
RPM_ARCH=$(rpm -qp --queryformat '%{ARCH}' "$RPM_FILE")
|
RPM_ARCH=$(rpm -qp --queryformat '%{ARCH}' "$RPM_FILE")
|
||||||
@@ -255,7 +255,7 @@ jobs:
|
|||||||
# Publish to each supported distribution
|
# Publish to each supported distribution
|
||||||
DISTRIBUTIONS="trixie forky noble plucky"
|
DISTRIBUTIONS="trixie forky noble plucky"
|
||||||
|
|
||||||
for DEB_FILE in dist/lab*.deb; do
|
for DEB_FILE in dist/labctl*.deb; do
|
||||||
[ -f "$DEB_FILE" ] || continue
|
[ -f "$DEB_FILE" ] || continue
|
||||||
DEB_VERSION=$(dpkg-deb --field "$DEB_FILE" Version)
|
DEB_VERSION=$(dpkg-deb --field "$DEB_FILE" Version)
|
||||||
DEB_ARCH=$(dpkg-deb --field "$DEB_FILE" Architecture)
|
DEB_ARCH=$(dpkg-deb --field "$DEB_FILE" Architecture)
|
||||||
|
|||||||
Reference in New Issue
Block a user