diff --git a/README.md b/README.md index b6451f8..e68d507 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![Build status](https://github.com/jasonn3/build-container-installer/actions/workflows/build-and-test.yml/badge.svg?branch=main) +![Build status](https://github.com/jasonn3/build-container-installer/actions/workflows/build-and-test.yml/badge.svg??event=push) # Bulid Container Installer Action This action is used to generate an ISO for installing OSTrees stored in a container. This utilizes the anaconda command `ostreecontainer` diff --git a/entrypoint.sh b/entrypoint.sh index 5886728..bb13346 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,12 +7,18 @@ do export $entry done +# Pull container make container/${IMAGE_NAME}-${IMAGE_TAG} $@ +# Build base ISO make boot.iso $@ +# Add container to ISO make build/deploy.iso $@ +# Make output dir in github workspace mkdir /github/workspace/build || true -cp build/*.iso /github/workspace/build \ No newline at end of file +# Copy resulting iso to github workspace and fix permissions +cp build/deploy.iso /github/workspace/build +chmod -R ugo=rwX /github/workspace/build \ No newline at end of file