mirror of
https://github.com/lindbergh-loader/lindbergh-loader.git
synced 2026-10-14 01:49:12 +03:00
Compare commits
7
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f90591690 | ||
|
|
a3d476c584 | ||
|
|
6d799d7524 | ||
|
|
73d0c9fb57 | ||
|
|
cf5b0e32d0 | ||
|
|
8c9da58237 | ||
|
|
91da7f0474 |
@@ -29,22 +29,28 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
docker build --target lindbergh-build -t lindbergh-loader .
|
docker build --target lindbergh-build -t lindbergh-loader .
|
||||||
|
|
||||||
# Run the Docker container to extract the build output
|
# Extract build artifacts
|
||||||
- name: Run container and extract build output
|
- name: Extract build artifacts
|
||||||
run: |
|
run: |
|
||||||
docker create --name lindbergh-builder lindbergh-loader
|
docker create --name lindbergh-builder lindbergh-loader
|
||||||
docker cp lindbergh-builder:/lindbergh-loader/build ./build
|
docker cp lindbergh-builder:/output ./build
|
||||||
docker rm lindbergh-builder
|
docker rm lindbergh-builder
|
||||||
|
|
||||||
# Archive the build directory as an artifact
|
# Compress the build directory
|
||||||
|
- name: Compress build directory
|
||||||
|
run: tar -czvf build.tar.gz -C ./build .
|
||||||
|
|
||||||
|
# Archive the build directory as an artifact for debugging
|
||||||
- name: Archive build directory
|
- name: Archive build directory
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: build-output
|
name: build-output
|
||||||
path: ./build
|
path: ./build
|
||||||
|
|
||||||
# Create a GitHub release and upload the artifact
|
# Create a GitHub release and capture the upload URL (only on push events)
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -54,12 +60,14 @@ jobs:
|
|||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
|
# Upload the compressed build artifact to the release (only on push events)
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
|
if: github.event_name == 'push'
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ./build
|
asset_path: ./build.tar.gz
|
||||||
asset_name: build.tar.gz
|
asset_name: build.tar.gz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
|
|||||||
+2
-1
@@ -15,4 +15,5 @@ WORKDIR /lindbergh-loader
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN make
|
# Explicitly set the output directory
|
||||||
|
RUN make && mkdir -p /output && cp -r ./build /output
|
||||||
|
|||||||
Reference in New Issue
Block a user