workflows/docker: base homebrew/brew on 22.04

Also disable fail-fast so that if a image upload fails we don't stop the other uploads halfway.
This commit is contained in:
Bo Anderson 2022-04-28 21:21:38 +01:00
parent dca8214c2a
commit 3ddcf765d2
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
2 changed files with 3 additions and 2 deletions

View File

@ -16,6 +16,7 @@ jobs:
if: startsWith(github.repository, 'Homebrew/') if: startsWith(github.repository, 'Homebrew/')
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false
matrix: matrix:
version: ["16.04", "18.04", "20.04", "22.04"] version: ["16.04", "18.04", "20.04", "22.04"]
steps: steps:
@ -55,7 +56,7 @@ jobs:
docker push "homebrew/ubuntu${{matrix.version}}:latest" docker push "homebrew/ubuntu${{matrix.version}}:latest"
- name: Deploy the homebrew/brew Docker image to GitHub Packages and Docker Hub - name: Deploy the homebrew/brew Docker image to GitHub Packages and Docker Hub
if: startsWith(github.ref, 'refs/tags/') && matrix.version == '20.04' if: startsWith(github.ref, 'refs/tags/') && matrix.version == '22.04'
run: | run: |
docker tag brew "ghcr.io/homebrew/brew:${brew_version}" docker tag brew "ghcr.io/homebrew/brew:${brew_version}"
docker push "ghcr.io/homebrew/brew:${brew_version}" docker push "ghcr.io/homebrew/brew:${brew_version}"

View File

@ -1,4 +1,4 @@
ARG version=20.04 ARG version=22.04
# shellcheck disable=SC2154 # shellcheck disable=SC2154
FROM ubuntu:"${version}" FROM ubuntu:"${version}"
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive