Skip to content

Commit

Permalink
Upload binary artifact during build
Browse files Browse the repository at this point in the history
  • Loading branch information
ilia1243 committed Jan 19, 2023
1 parent e3aa875 commit 2d117b2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Build Binary via Docker
run: docker build -t kubemarine --build-arg BUILD_TYPE=binary --no-cache .
run: |
docker build -t kubemarine --build-arg BUILD_TYPE=binary --no-cache .
CONTAINER_ID=$(docker create kubemarine)
mkdir dist
docker cp "${CONTAINER_ID}:/opt/kubemarine/dist/kubemarine" dist/kubemarine
docker rm -v "${CONTAINER_ID}"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: kubemarine
path: ./dist/kubemarine
retention-days: 1
build-package:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 2d117b2

Please sign in to comment.