Skip to content

Commit

Permalink
fix: run build with cli container (#15)
Browse files Browse the repository at this point in the history
* refactor: switch to running bluebuild with podman run to get newer buildah versions

* fix: remove registry inputs that don't exist yet

(these came from @gerblesh's PR which i'm trying to fix here)

* chore: test with alpine image

* style: cleaner newline usage in podman command
  • Loading branch information
xynydev authored Feb 17, 2024
1 parent b68c795 commit 2cccc96
Showing 1 changed file with 3 additions and 9 deletions.
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 }}

0 comments on commit 2cccc96

Please sign in to comment.