Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Please include an entry in CHANGELOG.md with most pull requests!
13 changes: 10 additions & 3 deletions .github/workflows/push_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

env:
DEFAULT_BASE_IMAGE: 'debian:bookworm-slim'
LATEST_ALPINE_BASE_IMAGE: 'frolvlad/alpine-glibc:alpine-3.18'

jobs:
build_docker_image_and_push:
Expand All @@ -27,6 +28,7 @@ jobs:
- ubuntu:jammy
- ubuntu:focal
- frolvlad/alpine-glibc:alpine-3.18
- frolvlad/alpine-glibc:alpine-3.17
- nvidia/cuda:12.3.1-base-ubuntu22.04
- nvidia/cuda:12.3.1-base-ubuntu20.04
- nvidia/cuda:12.2.2-base-ubuntu22.04
Expand Down Expand Up @@ -71,18 +73,21 @@ jobs:
code_name[20.04]=focal
code_name[18.04]=bionic
ubuntu_version_number="${IMAGE##*-ubuntu}"
tag="${IMAGE##*:}"
cuda_version="${tag%%-*}"
base_tag="${IMAGE##*:}"
cuda_version="${base_tag%%-*}"
echo "tag=${code_name[$ubuntu_version_number]}-cuda-${cuda_version}" >> $GITHUB_OUTPUT
echo "platforms=linux/amd64,linux/arm64" >> $GITHUB_OUTPUT
elif [ "${IMAGE%%:*}" = "frolvlad/alpine-glibc" ]; then
echo "tag=alpine" >> $GITHUB_OUTPUT
base_tag="${IMAGE##*:}"
alpine_version="${base_tag##alpine-}"
echo "tag=alpine${alpine_version}" >> $GITHUB_OUTPUT
echo "platforms=linux/amd64" >> $GITHUB_OUTPUT
else
echo "tag=$(echo "$IMAGE" | cut -d: -f2)" >> $GITHUB_OUTPUT
echo "platforms=linux/amd64,linux/arm64,linux/ppc64le" >> $GITHUB_OUTPUT
fi
echo "is_default=$([ "$IMAGE" = "$DEFAULT_BASE_IMAGE" ] && echo true || echo false)" >> $GITHUB_OUTPUT
echo "is_latest_alpine=$([ "$IMAGE" = "$LATEST_ALPINE_BASE_IMAGE" ] && echo true || echo false)" >> $GITHUB_OUTPUT
- name: Get stage1 docker metadata
id: get_stage1_metadata
uses: docker/metadata-action@3343011071fa59c64a174cc6aa415dc13b31b7b2
Expand All @@ -102,6 +107,7 @@ jobs:
flavor: latest=false
# latest
# base_image
# alpine
# major.minor.patch
# major.minor
# major
Expand All @@ -113,6 +119,7 @@ jobs:
tags: |
type=raw,value=latest,priority=1000,enable=${{ steps.set_image_variables.outputs.is_default }}
type=raw,value=${{ steps.set_image_variables.outputs.tag }},priority=900
type=raw,value=alpine,priority=850,enable=${{ steps.set_image_variables.outputs.is_lastest_alpine }}
type=semver,pattern={{version}},enable=${{ steps.set_image_variables.outputs.is_default }},value=${{ steps.get_version.outputs.version }},priority=800
type=semver,pattern={{major}}.{{minor}},enable=${{ steps.set_image_variables.outputs.is_default }},value=${{ steps.get_version.outputs.version }},priority=700
type=semver,pattern={{major}},enable=${{ steps.set_image_variables.outputs.is_default }},value=${{ steps.get_version.outputs.version }},priority=600
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
This change log covers changes to the docker image and does not include
[changes to the micromamba program](https://github.com/mamba-org/mamba/blob/main/CHANGELOG.md).

## 27 December 2023

- Added back `alpine:3.17` base image with `alpine3.17` as the tag
- Added tag `alpine3.18` for `alpine:3.18` base image
- Tag `alpine` will now be a rolling tag that is assigned to the most recent
alpine image

## 23 December 2023

- Use `packaging.version` instead of `semver` to parse version numbers in `check_version.py`
Expand Down