Update to Ubuntu 22.04 and add cleanup to dockerfile

This commit is contained in:
Uruk 2024-03-04 01:55:26 +01:00
parent b5d7972003
commit 657a2c0a55
2 changed files with 36 additions and 29 deletions

View file

@ -1,31 +1,38 @@
ARG IMAGE
FROM ${IMAGE}
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y software-properties-common && \
add-apt-repository -y ppa:ubuntu-support-team/meson
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
debhelper \
devscripts \
meson \
pkg-config \
libstdc++6 \
libgbm-dev \
libdrm-dev \
libx11-6 \
libx11-dev \
libx11-xcb1 \
libx11-xcb-dev \
libxcb-dri2-0 \
libxcb-dri2-0-dev \
libxdamage1 \
libxdamage-dev \
libxext6 \
libxext-dev \
libxfixes3 \
libxfixes-dev \
libwayland-client0 \
libwayland-dev && \
rm -rf /var/lib/apt/lists/*
build-essential \
debhelper \
devscripts \
meson \
pkg-config \
libstdc++6 \
libgbm-dev \
libdrm-dev \
libx11-6 \
libx11-dev \
libx11-xcb1 \
libx11-xcb-dev \
libxcb-dri2-0 \
libxcb-dri2-0-dev \
libxdamage1 \
libxdamage-dev \
libxext6 \
libxext-dev \
libxfixes3 \
libxfixes-dev \
libwayland-client0 \
libwayland-dev && \
&& apt-get clean autoclean --yes \
&& apt-get autoremove --yes \
&& rm -rf /var/cache/apt/archives* /var/lib/apt/lists/*
COPY . /src/
WORKDIR /src/

View file

@ -20,22 +20,22 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: linux/arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .github/workflows/
tags: ${{ matrix.image }}:build
build-args: IMAGE=${{ matrix.image }}:20.04
build-args: IMAGE=${{ matrix.image }}:22.04
cache-from: type=gha,scope=${{ matrix.image }}
cache-to: type=gha,scope=${{ matrix.image }},mode=max
load: true
@ -51,7 +51,7 @@ jobs:
- name: Get commit hash
id: get_commit_hash
uses: pr-mpt/actions-commit-hash@v2
uses: prompt/actions-commit-hash@v3
- name: Release
uses: softprops/action-gh-release@v1