Skip to content

Commit

Permalink
chore: Framework images have moved (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeCantCU authored Sep 21, 2023
1 parent c611bf9 commit 19722c2
Show file tree
Hide file tree
Showing 16 changed files with 6 additions and 309 deletions.
34 changes: 4 additions & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,13 @@ jobs:
fail-fast: false
matrix:
image_flavor: [main, nvidia]
base_name: [bluefin, bluefin-dx, bluefin-framework, bluefin-dx-framework]
base_name: [bluefin, bluefin-dx]
major_version: [38]
exclude:
- base_name: bluefin-dx-framework
image_flavor: nvidia
- base_name: bluefin-framework
image_flavor: nvidia
include:
- base_name: bluefin-framework
target_base: bluefin
target_name: framework
- base_name: bluefin-dx-framework
target_base: bluefin-dx
target_name: framework
- major_version: 38
is_latest_version: true
is_stable_version: true
steps:
steps:
# Checkout push-to-registry action GitHub repository
- name: Checkout Push to Registry action
uses: actions/checkout@v4
Expand Down Expand Up @@ -90,10 +79,10 @@ jobs:
echo "${TAG}"
done
echo "alias_tags=${alias_tags[*]}" >> $GITHUB_OUTPUT
- name: Get Current Fedora Version
id: labels
run: |
run: |
ver=$(skopeo inspect docker://ghcr.io/ublue-os/silverblue-${{ matrix.image_flavor }}:${{ matrix.major_version }} | jq -r '.Labels["org.opencontainers.image.version"]')
echo "VERSION=$ver" >> $GITHUB_OUTPUT
Expand All @@ -111,20 +100,6 @@ jobs:
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ublue-os/bluefin/bluefin/README.md
io.artifacthub.package.logo-url=https://avatars.githubusercontent.com/u/120078124?s=200&v=4
# Update FROM lines for variants that have their own matrix via SED
# This is due to limitations in buildah using interpreted values as registry
# images and not image targets in file:
# `FROM ${TARGET_BASE} as framework`
# evalutates to `FROM bluefin as framework` but buildah then looks for quay.io/bluefin
# vs the existing containerfile target.
# TODO(GH-280): Find an alternative for this rather than using sed.
- name: Build Image
id: sed_workaround
if: matrix.target_base
shell: bash
run: |
sed -i 's/FROM bluefin AS bluefin-framework/FROM ${{ matrix.target_base }} AS ${{ matrix.base_name }}/' Containerfile
# Build image using Buildah action
- name: Build Image
id: build_image
Expand Down Expand Up @@ -197,4 +172,3 @@ jobs:
if: github.event_name != 'pull_request'
run: |
echo "${{ toJSON(steps.push.outputs) }}"
19 changes: 0 additions & 19 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,22 +108,3 @@ RUN rm -f /etc/yum.repos.d/fedora-cisco-openh264.repo

RUN rm -rf /tmp/* /var/*
RUN ostree container commit

# Image for Framework laptops
FROM bluefin AS bluefin-framework

ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"
ARG PACKAGE_LIST="bluefin-framework"

COPY framework/usr /usr
COPY packages.json /tmp/packages.json
COPY build.sh /tmp/build.sh

# Handle packages via packages.json
RUN /tmp/build.sh

RUN systemctl enable tlp
RUN systemctl enable fprintd.service

RUN rm -rf /tmp/* /var/*
RUN ostree container commit
9 changes: 0 additions & 9 deletions framework/usr/etc/dconf/db/local.d/01-ublue-framework

This file was deleted.

48 changes: 0 additions & 48 deletions framework/usr/etc/systemd/system/fprintd.service

This file was deleted.

133 changes: 0 additions & 133 deletions framework/usr/etc/tlp.d/50-framework.conf

This file was deleted.

Binary file removed framework/usr/share/backgrounds/FrameworkZB.jpg
Binary file not shown.
Binary file removed framework/usr/share/backgrounds/center.png
Binary file not shown.
Binary file not shown.
Binary file removed framework/usr/share/backgrounds/framework_box.png
Binary file not shown.
Binary file removed framework/usr/share/backgrounds/hills.jpg
Binary file not shown.
12 changes: 0 additions & 12 deletions framework/usr/share/gnome-background-properties/FrameworkZB.xml

This file was deleted.

12 changes: 0 additions & 12 deletions framework/usr/share/gnome-background-properties/center.xml

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions framework/usr/share/gnome-background-properties/framework_box.xml

This file was deleted.

12 changes: 0 additions & 12 deletions framework/usr/share/gnome-background-properties/hills.xml

This file was deleted.

12 changes: 2 additions & 10 deletions packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@
"ubuntumono-nerd-fonts",
"virt-manager",
"wl-clipboard"
],
"bluefin-framework": [
"tlp",
"tlp-rdw"
]
},
"exclude": {
Expand All @@ -97,10 +93,7 @@
"gnome-software-rpm-ostree",
"gnome-tour"
],
"bluefin-dx": [],
"bluefin-framework": [
"power-profiles-daemon"
]
"bluefin-dx": []
}
},
"38": {
Expand All @@ -113,8 +106,7 @@
"bluefin": [
"podman-docker"
],
"bluefin-dx": [],
"bluefin-framework": []
"bluefin-dx": []
}
}
}

0 comments on commit 19722c2

Please sign in to comment.