This repository has been archived by the owner on Jan 30, 2025. It is now read-only.
forked from ublue-os/bluefin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ublue-os-main' into live
- Loading branch information
Showing
27 changed files
with
458 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ on: | |
schedule: | ||
- cron: '20 22 * * *' # 10:20pm everyday | ||
pull_request: | ||
merge_group: | ||
merge_group: | ||
workflow_dispatch: | ||
env: | ||
IMAGE_NAME: bluefin-cli | ||
|
@@ -24,11 +24,19 @@ jobs: | |
id-token: write | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
steps: | ||
# Checkout push-to-registry action GitHub repository | ||
- name: Checkout Push to Registry action | ||
uses: actions/checkout@v4 | ||
|
||
|
||
- name: Verify base container | ||
uses: EyeCantCU/cosign-action/[email protected] | ||
with: | ||
containers: wolfi-base | ||
cert-identity: https://github.com/chainguard-images/images/.github/workflows/release.yaml@refs/heads/main | ||
oidc-issuer: https://token.actions.githubusercontent.com | ||
registry: cgr.dev/chainguard | ||
|
||
# Build metadata | ||
- name: Image Metadata | ||
uses: docker/metadata-action@v5 | ||
|
@@ -73,8 +81,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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ on: | |
schedule: | ||
- cron: '20 22 * * *' # 10:20pm everyday | ||
pull_request: | ||
merge_group: | ||
merge_group: | ||
workflow_dispatch: | ||
env: | ||
IMAGE_NAME: fedora-toolbox | ||
|
@@ -24,11 +24,16 @@ jobs: | |
id-token: write | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
steps: | ||
# Checkout push-to-registry action GitHub repository | ||
- name: Checkout Push to Registry action | ||
uses: actions/checkout@v4 | ||
|
||
|
||
- name: Verify Fedora distrobox | ||
uses: EyeCantCU/cosign-action/[email protected] | ||
with: | ||
containers: fedora-distrobox:latest | ||
|
||
# Build metadata | ||
- name: Image Metadata | ||
uses: docker/metadata-action@v5 | ||
|
@@ -50,7 +55,7 @@ jobs: | |
tags: ${{ env.IMAGE_TAGS }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
oci: false | ||
|
||
# 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 | ||
- name: Lowercase Registry | ||
|
@@ -73,17 +78,14 @@ 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 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Sign container | ||
- uses: sigstore/[email protected] | ||
if: github.event_name != 'pull_request' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ on: | |
schedule: | ||
- cron: '20 22 * * *' # 10:20pm everyday | ||
pull_request: | ||
merge_group: | ||
merge_group: | ||
workflow_dispatch: | ||
env: | ||
IMAGE_NAME: ubuntu-toolbox | ||
|
@@ -24,11 +24,18 @@ jobs: | |
id-token: write | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
steps: | ||
# Checkout push-to-registry action GitHub repository | ||
- name: Checkout Push to Registry action | ||
uses: actions/checkout@v4 | ||
|
||
|
||
- name: Verify Ubuntu toolbox | ||
uses: EyeCantCU/cosign-action/[email protected] | ||
with: | ||
containers: ubuntu-toolbox:22.04 | ||
pubkey: https://raw.githubusercontent.com/toolbx-images/images/main/quay.io-toolbx-images.pub | ||
registry: quay.io/toolbx-images | ||
|
||
# Build metadata | ||
- name: Image Metadata | ||
uses: docker/metadata-action@v5 | ||
|
@@ -50,7 +57,7 @@ jobs: | |
tags: ${{ env.IMAGE_TAGS }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
oci: false | ||
|
||
# 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 | ||
- name: Lowercase Registry | ||
|
@@ -73,17 +80,14 @@ 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 | ||
if: github.event_name != 'pull_request' | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Sign container | ||
- uses: sigstore/[email protected] | ||
if: github.event_name != 'pull_request' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ on: | |
schedule: | ||
- cron: '20 22 * * *' # 10:20pm everyday | ||
pull_request: | ||
merge_group: | ||
merge_group: | ||
workflow_dispatch: | ||
env: | ||
IMAGE_NAME: wolfi-toolbox | ||
|
@@ -24,11 +24,19 @@ jobs: | |
id-token: write | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
steps: | ||
# Checkout push-to-registry action GitHub repository | ||
- name: Checkout Push to Registry action | ||
uses: actions/checkout@v4 | ||
|
||
|
||
- name: Verify base container | ||
uses: EyeCantCU/cosign-action/[email protected] | ||
with: | ||
containers: wolfi-base | ||
cert-identity: https://github.com/chainguard-images/images/.github/workflows/release.yaml@refs/heads/main | ||
oidc-issuer: https://token.actions.githubusercontent.com | ||
registry: cgr.dev/chainguard | ||
|
||
# Build metadata | ||
- name: Image Metadata | ||
uses: docker/metadata-action@v5 | ||
|
@@ -73,8 +81,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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,13 +41,27 @@ jobs: | |
is_stable_version: true | ||
is_gts_version: false | ||
steps: | ||
- name: Maximize build space | ||
uses: ublue-os/remove-unwanted-software@v6 | ||
|
||
# Checkout push-to-registry action GitHub repository | ||
- name: Checkout Push to Registry action | ||
uses: actions/checkout@v4 | ||
|
||
- name: Verify base image | ||
uses: EyeCantCU/cosign-action/[email protected] | ||
with: | ||
containers: silverblue-${{ matrix.image_flavor }}:${{ matrix.major_version }} | ||
|
||
- name: Verify Chainguard images | ||
if: matrix.base_name != 'bluefin' | ||
uses: EyeCantCU/cosign-action/[email protected] | ||
with: | ||
containers: dive, flux, helm, ko, minio, kubectl | ||
cert-identity: https://github.com/chainguard-images/images/.github/workflows/release.yaml@refs/heads/main | ||
oidc-issuer: https://token.actions.githubusercontent.com | ||
registry: cgr.dev/chainguard | ||
|
||
- name: Maximize build space | ||
uses: ublue-os/remove-unwanted-software@v6 | ||
|
||
- name: Check just syntax | ||
uses: ublue-os/just-action@v1 | ||
|
||
|
@@ -185,8 +199,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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
# SCRIPT VERSION | ||
GROUP_SETUP_VER=1 | ||
GROUP_SETUP_VER_FILE="/etc/ublue/dx-groups" | ||
GROUP_SETUP_VER_RAN=$(cat "$GROUP_SETUP_VER_FILE") | ||
|
||
# Run script if updated | ||
if [[ -f $GROUP_SETUP_VER_FILE && "$GROUP_SETUP_VER" = "$GROUP_SETUP_VER_RAN" ]]; then | ||
echo "Group setup has already run. Exiting..." | ||
exit 0 | ||
fi | ||
|
||
# Setup Groups | ||
wheelarray=($(getent group wheel | cut -d ":" -f 4 | tr ',' '\n')) | ||
for user in $wheelarray | ||
do | ||
usermod -aG docker $user | ||
usermod -aG incus-admin $user | ||
usermod -aG lxd $user | ||
usermod -aG libvirt $user | ||
done | ||
|
||
# Prevent future executions | ||
echo "Writing state file" | ||
echo "$GROUP_SETUP_VER" > "$GROUP_SETUP_VER_FILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
|
||
# SCRIPT VERSION | ||
USER_SETUP_VER=1 | ||
USER_SETUP_VER_FILE="$HOME/.bluefin-vscode-configured" | ||
USER_SETUP_VER_RAN=$(cat "$USER_SETUP_VER_FILE") | ||
|
||
# Run script if updated | ||
if [[ -f $USER_SETUP_VER_FILE && "$USER_SETUP_VER" = "$USER_SETUP_VER_RAN" ]]; then | ||
echo "User setup has already run. Exiting..." | ||
exit 0 | ||
fi | ||
|
||
# Setup VSCode | ||
# Pre-install preferred VSCode Extensions | ||
code --install-extension ms-vscode-remote.remote-containers | ||
code --install-extension ms-azuretools.vscode-docker | ||
|
||
# Prevent future executions | ||
echo "Writing state file" | ||
echo "$USER_SETUP_VER" > "$USER_SETUP_VER_FILE" |
Oops, something went wrong.