Skip to content

Commit

Permalink
Merge branch 'main' into use-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
castrojo authored Dec 25, 2024
2 parents aff210a + c9f566d commit db0d71d
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 10 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build-boxkit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: build-boxkit
on:
workflow_dispatch: # allow manually triggering builds
pull_request:
branches:
- main
Expand All @@ -8,8 +9,8 @@ on:
push:
branches:
- main
paths-ignore:
- '**/README.md'
paths-ignore: # don't rebuild on documentation change
- '**.md'
env:
IMAGE_TAGS: latest
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
Expand All @@ -27,11 +28,12 @@ jobs:
matrix:
containerfile:
- boxkit
#- fedora-example # Included as an example to demonstrate multi-image builds, uncomment to build the fedora-example container too
#- fedora-example # Included as an example to demonstrate multi-image builds, uncomment to build the fedora-example container too
steps:
# Checkout push-to-registry action GitHub repository
- name: Checkout Push to Registry action
uses: actions/checkout@v4

# Build metadata
- name: Image Metadata
uses: docker/metadata-action@v5
Expand All @@ -52,7 +54,7 @@ jobs:
image: ${{ matrix.containerfile }}
tags: ${{ env.IMAGE_TAGS }}
labels: ${{ steps.meta.outputs.labels }}
oci: false
oci: true

# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
# https://github.com/macbre/push-to-ghcr/issues/12
Expand All @@ -75,8 +77,6 @@ jobs:
registry: ${{ steps.registry_case.outputs.lowercase }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
extra-args: |
--disable-content-trust

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand All @@ -86,7 +86,8 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

# Sign container
- uses: sigstore/[email protected]
- name: Install cosign
uses: sigstore/[email protected]

- name: Sign container image
if: github.event_name != 'pull_request'
Expand Down
2 changes: 1 addition & 1 deletion ContainerFiles/boxkit
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ COPY ../packages/boxkit.packages /

# Run the setup scripts
RUN chmod +x boxkit.sh distrobox-shims.sh && /boxkit.sh
RUN rm /boxkit.sh /distrobox-shims.sh /boxkit.packages
RUN rm /boxkit.sh /distrobox-shims.sh /boxkit.packages
2 changes: 1 addition & 1 deletion ContainerFiles/fedora-example
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ COPY ../packages/fedora-example.packages /

# Run the setup scripts
RUN chmod +x fedora-example.sh distrobox-shims.sh && /fedora-example.sh
RUN rm /fedora-example.sh /distrobox-shims.sh /fedora-example.packages
RUN rm /fedora-example.sh /distrobox-shims.sh /fedora-example.packages
30 changes: 30 additions & 0 deletions packages/boxkit-packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
age
atuin
btop
bat
chezmoi
clipboard
cosign
dbus-x11
direnv
eza
ffmpeg
fzf
github-cli
helix
just
make
micro
ncdu
ncurses
neovim
npm
plocate
python3
ripgrep
speedtest-cli
starship
vimdiff
wl-clipboard
zellij
zstd
1 change: 1 addition & 0 deletions packages/fedora-example-packages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
helix

0 comments on commit db0d71d

Please sign in to comment.