Skip to content

Commit

Permalink
New base containerfile based on copr
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanabx committed Feb 27, 2024
1 parent 41ae663 commit 14a44e6
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 252 deletions.
125 changes: 0 additions & 125 deletions .github/workflows/compile_cosmic.yml

This file was deleted.

16 changes: 8 additions & 8 deletions .github/workflows/push_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
fail-fast: false
matrix:
arch: [amd64] #add ,arm64 to add back arm build
version: [39, 40]
image_name: [fedora-cosmic-atomic, fedora-cosmic-atomic-silverblue, fedora-cosmic-atomic-nvidia]
version: [40, rawhide]
flavor: [base, silverblue, kinoite]
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@v10
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
COMMIT_TAGS+=("${SHA_SHORT}${MAJOR_VERSION:+-$MAJOR_VERSION}")
BUILD_TAGS=("${MAJOR_VERSION}" "${MAJOR_VERSION}-${{ matrix.arch }}" "${MAJOR_VERSION:+$MAJOR_VERSION-}${TIMESTAMP}" "${MAJOR_VERSION:+$MAJOR_VERSION-}${TIMESTAMP}-${{ matrix.arch }}")
# --
if [ "${MAJOR_VERSION}" == "39" ]; then
if [ "${MAJOR_VERSION}" == "40" ]; then
BUILD_TAGS+=("${TIMESTAMP}")
BUILD_TAGS+=("latest")
BUILD_TAGS+=("latest-${{ matrix.arch }}")
Expand All @@ -71,9 +71,9 @@ jobs:
id: meta
with:
images: |
${{ matrix.image_name }}
COSMIC-${{ matrix.flavor }}
labels: |
org.opencontainers.image.title=${{ matrix.image_name }}
org.opencontainers.image.title=COSMIC-${{ matrix.flavor }}
org.opencontainers.image.version=${{ matrix.version }}
org.opencontainers.image.description=${{ env.description }}
io.artifacthub.package.readme-url=https://raw.githubusercontent.com/ryanabx/fedora-cosmic-atomic/main/README.md
Expand All @@ -90,14 +90,14 @@ jobs:
uses: redhat-actions/buildah-build@v2
with:
containerfiles: |
./containers/Containerfile.${{ matrix.image_name }}
image: ${{ matrix.image_name }}
Containerfile
image: COSMIC-${{ matrix.flavor }}
tags: |
${{ steps.generate-tags.outputs.alias_tags }}
archs: ${{ matrix.arch }}
build-args: |
IMAGE_MAJOR_VERSION=${{ matrix.version }}
IMAGE_REGISTRY=${{ env.image_registry }}
FLAVOR=${{ matrix.flavor }}
oci: false

- name: 'Login to GitHub Container Registry'
Expand Down
16 changes: 16 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ARG FLAVOR=main
ARG BASE_IMAGE=quay.io/fedora-ostree-desktops/${FLAVOR}
ARG IMAGE_MAJOR_VERSION=40

FROM ${BASE_IMAGE}:${IMAGE_MAJOR_VERSION}

# Setup Copr repo
RUN wget https://copr.fedorainfracloud.org/coprs/ryanabx/cosmic-epoch/repo/fedora-40/ryanabx-cosmic-epoch-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_ryanabx-cosmic.repo

# Install cosmic desktop environment
RUN rpm-ostree install cosmic-epoch

# Install extras (currently just a power manager)
RUN rpm-ostree install tuned

RUN rpm-ostree cleanup -m && ostree container commit
35 changes: 0 additions & 35 deletions containers/Containerfile.compiler

This file was deleted.

28 changes: 0 additions & 28 deletions containers/Containerfile.fedora-cosmic-atomic

This file was deleted.

28 changes: 0 additions & 28 deletions containers/Containerfile.fedora-cosmic-atomic-nvidia

This file was deleted.

28 changes: 0 additions & 28 deletions containers/Containerfile.fedora-cosmic-atomic-silverblue

This file was deleted.

0 comments on commit 14a44e6

Please sign in to comment.