Fix CI workflow authentication issues
Some checks failed
Build bootupd with systemd-boot / build (push) Failing after 2s
Some checks failed
Build bootupd with systemd-boot / build (push) Failing after 2s
- Replace GitHub Actions checkout with manual git clone - Use full repository URL for manual checkout - Update all steps to work from /tmp/bootupd-sdboot directory - Replace upload-artifact action with manual artifact handling - Add proper permissions for packages write access - Follow same pattern as apt-ostree workflow
This commit is contained in:
parent
81e653e1be
commit
39d4f9a7e1
1 changed files with 21 additions and 8 deletions
|
|
@ -14,10 +14,18 @@ env:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
run: |
|
||||||
|
echo "Cloning repository..."
|
||||||
|
git clone https://git.raines.xyz/particle-os/bootupd-sdboot.git /tmp/bootupd-sdboot
|
||||||
|
cd /tmp/bootupd-sdboot
|
||||||
|
git fetch --all
|
||||||
|
git checkout ${{ github.sha || gitea.sha || 'main' }}
|
||||||
|
|
||||||
- name: Setup apt-cacher-ng
|
- name: Setup apt-cacher-ng
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -54,11 +62,13 @@ jobs:
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
run: |
|
run: |
|
||||||
|
cd /tmp/bootupd-sdboot
|
||||||
docker build --build-arg release-name=unstable -f Dockerfile \
|
docker build --build-arg release-name=unstable -f Dockerfile \
|
||||||
-t bootupd-sdboot:latest .
|
-t bootupd-sdboot:latest .
|
||||||
|
|
||||||
- name: Build bootupd inside container
|
- name: Build bootupd inside container
|
||||||
run: |
|
run: |
|
||||||
|
cd /tmp/bootupd-sdboot
|
||||||
docker run --rm -v $(pwd):/workspace bootupd-sdboot:latest bash -c "
|
docker run --rm -v $(pwd):/workspace bootupd-sdboot:latest bash -c "
|
||||||
# Setup apt-cacher-ng inside container if available
|
# Setup apt-cacher-ng inside container if available
|
||||||
if timeout 5 curl -s --connect-timeout 3 \
|
if timeout 5 curl -s --connect-timeout 3 \
|
||||||
|
|
@ -89,6 +99,7 @@ jobs:
|
||||||
|
|
||||||
- name: Create Debian packaging structure
|
- name: Create Debian packaging structure
|
||||||
run: |
|
run: |
|
||||||
|
cd /tmp/bootupd-sdboot
|
||||||
echo "Creating Debian packaging structure..."
|
echo "Creating Debian packaging structure..."
|
||||||
|
|
||||||
# Create debian directory structure
|
# Create debian directory structure
|
||||||
|
|
@ -170,6 +181,7 @@ jobs:
|
||||||
|
|
||||||
- name: Create Debian package
|
- name: Create Debian package
|
||||||
run: |
|
run: |
|
||||||
|
cd /tmp/bootupd-sdboot
|
||||||
echo "Creating Debian package for bootupd..."
|
echo "Creating Debian package for bootupd..."
|
||||||
|
|
||||||
# Get build information
|
# Get build information
|
||||||
|
|
@ -210,6 +222,7 @@ jobs:
|
||||||
|
|
||||||
- name: Upload to Forgejo Debian Registry
|
- name: Upload to Forgejo Debian Registry
|
||||||
run: |
|
run: |
|
||||||
|
cd /tmp/bootupd-sdboot
|
||||||
echo "Uploading to Forgejo Debian Registry..."
|
echo "Uploading to Forgejo Debian Registry..."
|
||||||
|
|
||||||
# Set Forgejo configuration
|
# Set Forgejo configuration
|
||||||
|
|
@ -286,10 +299,10 @@ jobs:
|
||||||
echo "🔧 To install: apt install bootupd"
|
echo "🔧 To install: apt install bootupd"
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
run: |
|
||||||
with:
|
cd /tmp/bootupd-sdboot
|
||||||
name: bootupd-binaries
|
echo "Creating artifact directory..."
|
||||||
path: |
|
mkdir -p /tmp/artifacts
|
||||||
bootupd
|
cp bootupd bootupctl bootupd_*.deb /tmp/artifacts/ 2>/dev/null || true
|
||||||
bootupctl
|
echo "Artifacts created in /tmp/artifacts/"
|
||||||
bootupd_*.deb
|
ls -la /tmp/artifacts/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue