docker: stop building Ubuntu 16.04 image.

This is too slow to be building every time and we're long past the
deprecation date.

Fixes https://github.com/Homebrew/brew/issues/14661
This commit is contained in:
Mike McQuaid 2023-03-24 08:57:48 +00:00
parent fad8deda56
commit 6a77ef2170
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
4 changed files with 5 additions and 28 deletions

View File

@ -22,7 +22,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
version: ["16.04", "18.04", "20.04", "22.04"] version: ["18.04", "20.04", "22.04"]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@main uses: actions/checkout@main

View File

@ -189,30 +189,6 @@ jobs:
docker tag brew "homebrew/ubuntu22.04:master" docker tag brew "homebrew/ubuntu22.04:master"
docker push "homebrew/ubuntu22.04:master" docker push "homebrew/ubuntu22.04:master"
- name: Build deprecated 16.04 Docker image
if: github.ref == 'refs/heads/master'
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
run: |
echo "homebrew/ubuntu16.04:master is deprecated and will soon be retired. Use homebrew/ubuntu22.04:master or homebrew/ubuntu18.04 or homebrew/brew. For CI, homebrew/ubuntu22.04:master is recommended." > .docker-deprecate
docker build -t brew-deprecated --build-arg=version=16.04 \
--label org.opencontainers.image.created="$(date --rfc-3339=seconds --utc)" \
--label org.opencontainers.image.url="https://brew.sh" \
--label org.opencontainers.image.documentation="https://docs.brew.sh" \
--label org.opencontainers.image.source="https://github.com/${GITHUB_REPOSITORY}" \
--label org.opencontainers.image.revision="${GITHUB_SHA}" \
--label org.opencontainers.image.vendor="${GITHUB_REPOSITORY_OWNER}" \
--label org.opencontainers.image.licenses="BSD-2-Clause" \
--label org.opencontainers.image.support.end-of-support="2022-09-07T00:00:00Z" \
.
- name: Deploy the deprecated 16.04 Docker image to GitHub Packages and Docker Hub
if: github.ref == 'refs/heads/master'
run: |
docker tag brew-deprecated "ghcr.io/homebrew/ubuntu16.04:master"
docker push "ghcr.io/homebrew/ubuntu16.04:master"
docker tag brew-deprecated "homebrew/ubuntu16.04:master"
docker push "homebrew/ubuntu16.04:master"
update-test: update-test:
name: ${{ matrix.name }} name: ${{ matrix.name }}
runs-on: ${{ matrix.runs-on }} runs-on: ${{ matrix.runs-on }}

View File

@ -25,6 +25,7 @@ RUN apt-get update \
g++ \ g++ \
gawk \ gawk \
git \ git \
gpg \
less \ less \
libz-dev \ libz-dev \
locales \ locales \
@ -37,7 +38,6 @@ RUN apt-get update \
uuid-runtime \ uuid-runtime \
tzdata \ tzdata \
jq \ jq \
&& if [ "$(. /etc/lsb-release; echo "${DISTRIB_RELEASE}" | cut -d. -f1)" -ge 18 ]; then apt-get install -y --no-install-recommends gpg; fi \
&& if [ "$(. /etc/lsb-release; echo "${DISTRIB_RELEASE}" | cut -d. -f1)" -ge 22 ]; then apt-get install -y --no-install-recommends gh skopeo; fi \ && if [ "$(. /etc/lsb-release; echo "${DISTRIB_RELEASE}" | cut -d. -f1)" -ge 22 ]; then apt-get install -y --no-install-recommends gh skopeo; fi \
&& apt-get remove --purge -y software-properties-common \ && apt-get remove --purge -y software-properties-common \
&& apt-get autoremove --purge -y \ && apt-get autoremove --purge -y \

View File

@ -1,6 +1,6 @@
# Linux CI in `homebrew/core` # Linux CI in `homebrew/core`
We currently use Ubuntu 16.04 for bottling in `homebrew/core`. We currently use Ubuntu 22.04 for bottling in `homebrew/core`.
## Ubuntu vs. other Linux distributions ## Ubuntu vs. other Linux distributions
@ -12,7 +12,8 @@ Our bottles are compatible with other distributions like Debian/CentOS, even whe
## Past and next versions ## Past and next versions
We are currently moving our CI to Ubuntu 22.04. This work will probably be done before end of 2022. We have moved our CI to Ubuntu 22.04
Moving from Ubuntu 16.04 to Ubuntu 22.04 (and thus skipping version 18.04 and 20.04) took longer than expected. Moving from Ubuntu 16.04 to Ubuntu 22.04 (and thus skipping version 18.04 and 20.04) took longer than expected.
We plan to proceed with regular updates from 2022 onwards. We aim to use the latest Ubuntu LTS version for our CI. We plan to proceed with regular updates from 2022 onwards. We aim to use the latest Ubuntu LTS version for our CI.