Skip to content

Commit

Permalink
feat: containerd mount for faster builds and cli version update (#22)
Browse files Browse the repository at this point in the history
* Use main-alpine tag for testing purposes

* Add trace logging for debugging

* Don't require cosign private key

* Add volume mount for /var/run/containerd for better disk performance

* Update to GH_TOKEN and GH_PR_EVENT_NUMBER

* Update action.yml

---------

Co-authored-by: Gerald Pinder <[email protected]>
  • Loading branch information
xynydev and gmpinder authored Feb 25, 2024
1 parent 3052739 commit aef8fcf
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,17 @@ runs:
shell: bash
env:
COSIGN_PRIVATE_KEY: ${{ inputs.cosign_private_key }}
REGISTRY_TOKEN: ${{ inputs.registry_token }}
PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
GH_TOKEN: ${{ inputs.registry_token }}
GH_PR_EVENT_NUMBER: ${{ inputs.pr_event_number }}
run: |
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 }} \
--registry ${{inputs.registry}} --registry-namespace ${{inputs.registry_namespace}}
podman run \
-v buildah-vol:/var/run/containerd \
-v $PWD:/bluebuild \
--env-host \
--network=host \
--privileged \
--device /dev/fuse \
ghcr.io/blue-build/cli:v0.8.0-alpine \
build -vv --push ./config/${{ inputs.recipe }} \
--registry ${{inputs.registry}} \
--registry-namespace ${{inputs.registry_namespace}}

0 comments on commit aef8fcf

Please sign in to comment.