mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-24 17:41:16 -03:00
28 lines
719 B
YAML
28 lines
719 B
YAML
name: "Update Linux docker images"
|
|
|
|
sources:
|
|
ubuntu_latest_lts_version:
|
|
kind: shell
|
|
spec:
|
|
shell: bash
|
|
command: |
|
|
set -eo pipefail
|
|
curl -fsS https://endoflife.date/api/ubuntu.json |
|
|
jq -r --arg today "$today" '
|
|
.[]
|
|
| select(.lts)
|
|
| "\(.cycle)"
|
|
' |
|
|
sort --version-sort |
|
|
tail -1
|
|
|
|
targets:
|
|
ubuntu_latest_version_dockerfile:
|
|
name: "Update oldest non-EOL Ubuntu Linux version"
|
|
sourceid: ubuntu_latest_lts_version
|
|
kind: file
|
|
spec:
|
|
file: docker/ubuntu-latest-lts.Dockerfile
|
|
matchpattern: "FROM ubuntu:.*"
|
|
replacepattern: 'FROM ubuntu:{{ source "ubuntu_latest_lts_version" }}'
|