Skip to content

Commit c410a89

Browse files
authored
Initial commit
0 parents  commit c410a89

10 files changed

+605
-0
lines changed

.github/dependabot.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/build-boxkit.yml

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: build-boxkit
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
schedule:
7+
- cron: '0 0 * * TUE'
8+
push:
9+
branches:
10+
- main
11+
paths-ignore:
12+
- '**/README.md'
13+
env:
14+
IMAGE_NAME: boxkit
15+
IMAGE_TAGS: latest
16+
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
17+
18+
jobs:
19+
push-ghcr:
20+
name: Build and push image
21+
runs-on: ubuntu-22.04
22+
permissions:
23+
contents: read
24+
packages: write
25+
id-token: write
26+
strategy:
27+
fail-fast: false
28+
steps:
29+
# Checkout push-to-registry action GitHub repository
30+
- name: Checkout Push to Registry action
31+
uses: actions/checkout@v4
32+
33+
# Build metadata
34+
- name: Image Metadata
35+
uses: docker/metadata-action@v5
36+
id: meta
37+
with:
38+
images: |
39+
${{ env.IMAGE_NAME }}
40+
labels: |
41+
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/boxkit/main/README.md
42+
43+
# Build image using Buildah action
44+
- name: Build Image
45+
id: build_image
46+
uses: redhat-actions/buildah-build@v2
47+
with:
48+
containerfiles: |
49+
./Containerfile
50+
image: ${{ env.IMAGE_NAME }}
51+
tags: ${{ env.IMAGE_TAGS }}
52+
labels: ${{ steps.meta.outputs.labels }}
53+
oci: false
54+
55+
# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
56+
# https://github.com/macbre/push-to-ghcr/issues/12
57+
- name: Lowercase Registry
58+
id: registry_case
59+
uses: ASzc/change-string-case-action@v6
60+
with:
61+
string: ${{ env.IMAGE_REGISTRY }}
62+
63+
# Push the image to GHCR (Image Registry)
64+
- name: Push To GHCR
65+
uses: redhat-actions/push-to-registry@v2
66+
id: push
67+
env:
68+
REGISTRY_USER: ${{ github.actor }}
69+
REGISTRY_PASSWORD: ${{ github.token }}
70+
with:
71+
image: ${{ steps.build_image.outputs.image }}
72+
tags: ${{ steps.build_image.outputs.tags }}
73+
registry: ${{ steps.registry_case.outputs.lowercase }}
74+
username: ${{ env.REGISTRY_USER }}
75+
password: ${{ env.REGISTRY_PASSWORD }}
76+
extra-args: |
77+
--disable-content-trust
78+
79+
- name: Login to GitHub Container Registry
80+
uses: docker/login-action@v3
81+
with:
82+
registry: ghcr.io
83+
username: ${{ github.actor }}
84+
password: ${{ secrets.GITHUB_TOKEN }}
85+
86+
# Sign container
87+
- uses: sigstore/[email protected]
88+
89+
- name: Sign container image
90+
if: github.event_name != 'pull_request'
91+
run: |
92+
cosign sign -y --key env://COSIGN_PRIVATE_KEY ${{ steps.registry_case.outputs.lowercase }}/${{ env.IMAGE_NAME }}@${TAGS}
93+
env:
94+
TAGS: ${{ steps.push.outputs.digest }}
95+
COSIGN_EXPERIMENTAL: false
96+
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
97+
98+
- name: Echo outputs
99+
run: |
100+
echo "${{ toJSON(steps.push.outputs) }}"

.github/workflows/release-please.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
name: release-please
6+
jobs:
7+
release-please:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: google-github-actions/release-please-action@v4
11+
with:
12+
release-type: simple
13+
package-name: release-please-action

CHANGELOG.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Changelog
2+
3+
## [1.1.0](https://github.com/ublue-os/boxkit/compare/v1.0.0...v1.1.0) (2023-10-09)
4+
5+
6+
### Features
7+
8+
* add age package ([#30](https://github.com/ublue-os/boxkit/issues/30)) ([b0989a9](https://github.com/ublue-os/boxkit/commit/b0989a9f791771999c105122b64cbf8687574650)), closes [#29](https://github.com/ublue-os/boxkit/issues/29)
9+
* add bat and exa ([#27](https://github.com/ublue-os/boxkit/issues/27)) ([011241e](https://github.com/ublue-os/boxkit/commit/011241e4ac1fdee5f3fbe8b8321e44ba8a0cb561))
10+
* add clipboard ([ebc22bf](https://github.com/ublue-os/boxkit/commit/ebc22bf72a10043ebec55c285dfe5274f1378cc5))
11+
* add dependabot for actions ([#18](https://github.com/ublue-os/boxkit/issues/18)) ([cc17ca5](https://github.com/ublue-os/boxkit/commit/cc17ca5202c1777d5e64799b00cb235b72027e24))
12+
* add make ([#10](https://github.com/ublue-os/boxkit/issues/10)) ([0cb4b59](https://github.com/ublue-os/boxkit/commit/0cb4b59cdd98c47d2f6bfa21f801b99b045d5e40))
13+
* add npm ([#8](https://github.com/ublue-os/boxkit/issues/8)) ([9f91bd0](https://github.com/ublue-os/boxkit/commit/9f91bd09272617c7b9203014222353265dc24947))
14+
* add vimdiff ([#12](https://github.com/ublue-os/boxkit/issues/12)) ([cf4202f](https://github.com/ublue-os/boxkit/commit/cf4202f76752561d9b926c81933342a119e8a258))
15+
* add wl-clipboard ([#16](https://github.com/ublue-os/boxkit/issues/16)) ([347647e](https://github.com/ublue-os/boxkit/commit/347647ea7f9f7bdb3b42d2a565df866f027a7ade))
16+
* nicer filter to allow commenting out apps ([#15](https://github.com/ublue-os/boxkit/issues/15)) ([61d3e33](https://github.com/ublue-os/boxkit/commit/61d3e330beb9c2a8bd557ef3872aa6595c76b1b2))
17+
* Replace exa with eza ([#57](https://github.com/ublue-os/boxkit/issues/57)) ([34653a2](https://github.com/ublue-os/boxkit/commit/34653a2dde5b4e1cf895a2d65fc9168e064fa224))
18+
* switch to alpine edge ([#22](https://github.com/ublue-os/boxkit/issues/22)) ([cf396c3](https://github.com/ublue-os/boxkit/commit/cf396c369ae8d8bb052df9b0c39d392f61b909ba))
19+
20+
21+
### Bug Fixes
22+
23+
* container signing ([#55](https://github.com/ublue-os/boxkit/issues/55)) ([9b695c1](https://github.com/ublue-os/boxkit/commit/9b695c1a21a94e7b6a40f5175408b8fc650e9413))
24+
* fix typo ([8addf9e](https://github.com/ublue-os/boxkit/commit/8addf9e4499a83b2b9b591e9808470f3e3f6a46e))
25+
* update dependabot ([#19](https://github.com/ublue-os/boxkit/issues/19)) ([0c388c9](https://github.com/ublue-os/boxkit/commit/0c388c958985cdc7d3c2d3de5d6d58de09472edf))
26+
* update maintainer field ([#37](https://github.com/ublue-os/boxkit/issues/37)) ([e94a8a6](https://github.com/ublue-os/boxkit/commit/e94a8a69c34f5692514ebcc8c3ac21e2f33aa947))
27+
28+
## 1.0.0 (2023-02-04)
29+
30+
31+
### Features
32+
33+
* add conventional commits linter and changelog generator ([#5](https://github.com/ublue-os/boxkit/issues/5)) ([0bc283d](https://github.com/ublue-os/boxkit/commit/0bc283d271878071ef50a413bab48f3bfc1ab312))
34+
* Create CODE_OF_CONDUCT.md ([#4](https://github.com/ublue-os/boxkit/issues/4)) ([f433b89](https://github.com/ublue-os/boxkit/commit/f433b89a1ed125c6c0a251c1eec60525cfe35820))

CODE_OF_CONDUCT.md

+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity
10+
and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the
26+
overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at
63+
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series
86+
of actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or
93+
permanent ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within
113+
the community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.0, available at
119+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at
128+
https://www.contributor-covenant.org/translations.

Containerfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM quay.io/toolbx-images/alpine-toolbox:edge
2+
3+
LABEL com.github.containers.toolbox="true" \
4+
usage="This image is meant to be used with the toolbox or distrobox command" \
5+
summary="A cloud-native terminal experience" \
6+
maintainer="[email protected]"
7+
8+
COPY extra-packages /
9+
RUN apk update && \
10+
apk upgrade && \
11+
grep -v '^#' /extra-packages | xargs apk add
12+
RUN rm /extra-packages
13+
14+
RUN ln -fs /bin/sh /usr/bin/sh && \
15+
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \
16+
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/flatpak && \
17+
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/podman && \
18+
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/rpm-ostree && \
19+
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/transactional-update
20+

0 commit comments

Comments
 (0)