Skip to content

Commit f9761bb

Browse files
committed
Build more versions
1 parent 7f3e056 commit f9761bb

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/docker.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ jobs:
1010
strategy:
1111
matrix:
1212
include:
13-
- version: "latest"
13+
- image: latest
14+
version: 20-cli
15+
- image: 23-cli
16+
version: 23-cli
17+
- image: 20-cli
18+
version: 20-cli
1419

1520
fail-fast: false
1621

17-
name: Docker (dockette/docker:${{ matrix.version }})
22+
name: Docker (dockette/docker:${{ matrix.image }})
1823

1924
steps:
2025
- name: Checkout
@@ -36,14 +41,16 @@ jobs:
3641
uses: actions/cache@v2
3742
with:
3843
path: /tmp/.buildx-cache
39-
key: ${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.version }}
44+
key: ${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.image }}
4045

4146
- name: Build and push
4247
uses: docker/build-push-action@v2
4348
with:
4449
context: .
4550
push: true
46-
tags: dockette/docker:${{ matrix.version }}
51+
tags: dockette/docker:${{ matrix.image }}
4752
cache-from: type=local,src=/tmp/.buildx-cache
4853
cache-to: type=local,dest=/tmp/.buildx-cache
4954
platforms: linux/amd64,linux/arm64
55+
build-args: |
56+
VERSION=${{ matrix.version }}

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM docker:20.10-cli
1+
ARG VERSION=20-cli
2+
3+
FROM docker:$VERSION
24

35
ENV DOCKER_BUILDKIT=1
46

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ docker-build:
55
build \
66
--platform linux/amd64,linux/arm64 \
77
--pull \
8+
--build-arg VERSION=23-cli \
89
-t ${DOCKER_IMAGE} \
910
.

0 commit comments

Comments
 (0)