Compare commits

..
3 Commits
Author SHA1 Message Date
Bobby Dilley cf5b0e32d0 Update ci.yml 2025-01-09 11:20:32 +00:00
Bobby Dilley 8c9da58237 Update ci.yml 2025-01-09 11:20:01 +00:00
Bobby Dilley 91da7f0474 Update Dockerfile 2025-01-09 11:19:27 +00:00
2 changed files with 17 additions and 12 deletions
+15 -11
View File
@@ -12,45 +12,49 @@ permissions:
contents: write
jobs:
build-and-release:
build:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Build the Docker image
- name: Build Docker image
run: |
docker build --target lindbergh-build -t lindbergh-loader .
# Run the Docker container to extract the build output
- name: Run container and extract build output
- name: Extract build artifacts
run: |
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
# Archive the build directory as an artifact
- name: Archive build directory
uses: actions/upload-artifact@v3
with:
name: build-output
path: ./build
# Create a GitHub release and upload the artifact
release:
if: github.event_name == 'push'
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
with:
name: build-output
path: ./build
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ github.run_number }}
release_name: "Build v${{ github.run_number }}"
release_name: "Lindbergh Loader v${{ github.run_number }}"
draft: false
prerelease: false
+2 -1
View File
@@ -15,4 +15,5 @@ WORKDIR /lindbergh-loader
COPY . .
RUN make
# Explicitly set the output directory
RUN make && mkdir -p /output && cp -r ./build /output