Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: run build with cli container #15

Merged
merged 4 commits into from
Feb 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,10 @@ runs:
# clones user's repo
- uses: actions/checkout@v4

- uses: sigstore/[email protected]

# pull self-contained binary program from installer image (outputs a bash install script)
- name: Install BlueBuild tool
shell: bash
run: podman run --rm ghcr.io/blue-build/cli:v0.7.0-installer | bash

# deps used by cli to build & inspect imaegs
- name: Install Dependencies
shell: bash
run: sudo apt-get install -y buildah skopeo
run: sudo apt-get install -y podman

# blue-build/cli does the heavy lifting
- name: Build Image
Expand All @@ -45,4 +38,5 @@ runs:
REGISTRY_TOKEN: ${{ inputs.registry_token }}
PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
run: |
bluebuild build --push ./config/${{ inputs.recipe }}
podman run --env-host --network=host --privileged --device /dev/fuse -v $PWD:/bluebuild \
ghcr.io/blue-build/cli:v0.7.1-alpine build --push ./config/${{ inputs.recipe }}