File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff line change 1- FROM docker:20.10-cli
1+ ARG VERSION=20-cli
2+
3+ FROM docker:$VERSION
24
35ENV DOCKER_BUILDKIT=1
46
Original file line number Diff line number Diff 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 .
You can’t perform that action at this time.
0 commit comments