mirror of
https://github.com/NaC-L/Mergen.git
synced 2026-05-12 09:40:34 +00:00
Update docker-image.yml
This commit is contained in:
@@ -7,12 +7,29 @@ on:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
|
||||
run: docker build . --file Dockerfile --tag my-image-name:latest
|
||||
|
||||
- name: Create a container and extract the binary
|
||||
run: |
|
||||
# Create a container
|
||||
docker create --name extract-container my-image-name:latest
|
||||
|
||||
# Copy the binary from the container
|
||||
mkdir -p ./output
|
||||
docker cp extract-container:/root/Mergen/build/lifter ./output/lifter
|
||||
|
||||
# Remove the container
|
||||
docker rm extract-container
|
||||
|
||||
- name: Verify extracted binary
|
||||
run: |
|
||||
ls -lh ./output
|
||||
file ./output/lifter
|
||||
|
||||
Reference in New Issue
Block a user