mirror of
https://github.com/getnora-io/nora.git
synced 2026-04-12 10:20:32 +00:00
ci: use shared runner filesystem instead of artifact API to avoid network upload
This commit is contained in:
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@@ -25,14 +25,10 @@ jobs:
|
|||||||
- name: Build release binary (musl static)
|
- name: Build release binary (musl static)
|
||||||
run: |
|
run: |
|
||||||
cargo build --release --target x86_64-unknown-linux-musl --package nora-registry
|
cargo build --release --target x86_64-unknown-linux-musl --package nora-registry
|
||||||
cp target/x86_64-unknown-linux-musl/release/nora ./nora
|
# Save to shared runner path — all build-docker jobs run on the same self-hosted runner
|
||||||
|
mkdir -p /tmp/nora-artifacts
|
||||||
- name: Upload binary
|
cp target/x86_64-unknown-linux-musl/release/nora /tmp/nora-artifacts/nora-${{ github.run_id }}
|
||||||
uses: actions/upload-artifact@v4
|
chmod +x /tmp/nora-artifacts/nora-${{ github.run_id }}
|
||||||
with:
|
|
||||||
name: nora-binary
|
|
||||||
path: nora
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
build-docker:
|
build-docker:
|
||||||
name: Build & Push (${{ matrix.name }})
|
name: Build & Push (${{ matrix.name }})
|
||||||
@@ -59,13 +55,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Download binary
|
- name: Copy binary from shared runner storage
|
||||||
uses: actions/download-artifact@v4
|
run: cp /tmp/nora-artifacts/nora-${{ github.run_id }} ./nora
|
||||||
with:
|
|
||||||
name: nora-binary
|
|
||||||
|
|
||||||
- name: Make binary executable
|
|
||||||
run: chmod +x nora
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user