diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index eebf932c663..dbd9af745e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -25,8 +25,8 @@ env: ACT: IMAGE_NAME: AKMODS_FLAVOR: - TEST_TAG: user/app:test - LATEST_TAG: user/app:latest + + DOCKER_BUILDKIT: 1 IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} jobs: @@ -55,10 +55,14 @@ jobs: uses: actions/checkout@v4 - name: Set up QEMU uses: docker/setup-qemu-action@v3 - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - name: Check just syntax uses: ublue-os/just-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + with: + config: buildkit.toml + - name: Install dependencies run: | sudo apt-get -y update @@ -203,13 +207,6 @@ jobs: # IMAGE_VENDOR=${{ github.repository_owner }} # FEDORA_MAJOR_VERSION=${{ matrix.major_version }} - - run: | - dirs=(rpm-ostree dnf yum bluefin bluefin-dx asus-firmware akmods gnome-prompt) - for dir in "${dirs[@]}"; do - sudo mkdir -p /var/cache/$dir - sudo chown -R $USER:$USER /var/cache/$dir - done - # Build image using Buildah action - name: Build Image id: build_image @@ -230,13 +227,6 @@ jobs: FEDORA_MAJOR_VERSION=${{ matrix.major_version }} extra-args: | --target=${{ matrix.base_name }} - -v /var/cache/dnf:/var/cache/dnf:O - -v /var/cache/yum:/var/cache/yum:O - -v /var/cache/akmods:/var/cache/akmods:O - -v /var/cache/bluefin:/var/cache/bluefin:O - -v /var/cache/bluefin-dx:/var/cache/bluefin-dx:O - -v /var/cache/asus-firmware:/var/cache/asus-firmware:O - -v /var/cache/gnome-prompt:/var/cache/gnome-prompt:O # 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 diff --git a/Containerfile b/Containerfile index ba03f44a265..c26bb9c333e 100644 --- a/Containerfile +++ b/Containerfile @@ -1,3 +1,5 @@ +# syntax=docker/dockerfile:1.3-labs + ARG BASE_HUB="ghcr.io/ublue-os" ARG IMAGE_FLAVOR="${IMAGE_FLAVOR:-main}" ARG AKMODS_FLAVOR="${AKMODS_FLAVOR:-main}" @@ -51,20 +53,34 @@ RUN if [[ "${IMAGE_FLAVOR}" =~ "asus" ]]; then \ # Add ublue kmods, add needed negativo17 repo and then immediately disable due to incompatibility with RPMFusion COPY --from=bluefin-akmods /rpms /tmp/akmods-rpms -RUN <