Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to 20 10 14 #2

Open
wants to merge 178 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
178 commits
Select commit Hold shift + click to select a range
6f49197
context: Ensure import paths are valid
chris-crone Sep 16, 2020
9ecc69d
context: Ensure context name is valid on import
chris-crone Sep 24, 2020
18f33b3
context: Add tarball e2e tests
chris-crone Jan 5, 2021
5941f41
vendor docker, docker-credential-helpers and golang/sys for execabs p…
Jan 25, 2021
48d30b5
Use golang.org/x/sys/execabs
Jan 25, 2021
8212393
Add bash completion for jobs
albers Dec 15, 2020
e82920d
Remove duplicate word in push.md
rochfeu Jan 6, 2021
6aa1b37
Add bash completion for `docker run|create --pull`
albers Jan 5, 2021
08c4fdf
Add bash completion for `dockerd --ip6tables`
albers Jan 5, 2021
4eb0500
Update bash completion for fluentd --log-options
albers Jan 5, 2021
b22fe0f
deprecate blkio-weight options with cgroups v1
thaJeztah Jan 4, 2021
be966aa
docs: fix typo in deprecated.md
thaJeztah Jan 8, 2021
42811a7
docs: add redirect for old reference URL
thaJeztah Jan 21, 2021
03cd1dc
Added zsh completion for docker context subcommands
stoffus Jan 4, 2021
0dcfdde
Removed format flag for inspect
stoffus Jan 4, 2021
f90db25
docs: Fix wrong variable name
LeeDongGeon1996 Jan 23, 2021
05343b3
fix docker-run man page table formatting
thaJeztah Jan 25, 2021
2b74b90
Add docs and completion for docker node ls --filter node.label
thaJeztah Jan 26, 2021
d513e46
cli/config: prevent warning if HOME is not set
thaJeztah Jan 18, 2021
de40c2b
Fix panic when failing to get DefaultAuthConfig
thaJeztah Jan 7, 2021
3c87f01
Ignore SIGURG on Linux.
cpuguy83 Jan 13, 2021
0de4e6e
Fix reading context and dockerfile from stdin with BuildKit
alexey-igrychev Dec 14, 2020
376b99c
Rename bin/md2man to bin/go-md2man
elboulangero Dec 16, 2020
1fdf84b
fix --update-order and --rollback-order flags
jimlinntu Jan 18, 2021
3e157d5
docker service rollback: fix non-zero exit code in some cases
thaJeztah Jan 19, 2021
d6eeeb6
service rollback: always verify state
thaJeztah Jan 19, 2021
41b3ea7
Merge pull request #2960 from thaJeztah/20.10_backport_ignore_sigurg
cpuguy83 Feb 4, 2021
3e293e6
Merge pull request #2958 from thaJeztah/20.10_backport_fix_homedir_wa…
silvin-lubecki Feb 12, 2021
1304844
Merge pull request #2964 from thaJeztah/20.10_backport_fix_swarm_roll…
silvin-lubecki Feb 18, 2021
830d659
Merge pull request #2963 from thaJeztah/20.10_backport_fix_update_rol…
silvin-lubecki Feb 18, 2021
53c4602
Merge pull request #2962 from thaJeztah/20.10_backport_go_md2man_bina…
silvin-lubecki Feb 18, 2021
61cb016
Merge pull request #2961 from thaJeztah/20.10_backport_fix_context_do…
silvin-lubecki Feb 18, 2021
433014b
Merge pull request #2959 from thaJeztah/20.10_backport_fix_login_panic
silvin-lubecki Feb 18, 2021
d3cb89e
Merge pull request #2957 from thaJeztah/20.10_backport_docs_fixes
silvin-lubecki Feb 18, 2021
f33a69f
[20.10] Revert "Ignore SIGURG on Linux."
thaJeztah Mar 1, 2021
55c4c88
Merge pull request #2987 from thaJeztah/20.10_revert_backport_ignore_…
tiborvass Mar 2, 2021
4571d90
config: print deprecation warning when falling back to ~/.dockercfg
thaJeztah Jul 16, 2020
ff94515
docs: improve example for "remove all stopped containers"
thaJeztah Mar 9, 2021
9c8a91d
Merge pull request #3002 from thaJeztah/20.10_backport_remove_all_exa…
silvin-lubecki Mar 9, 2021
2c04354
docs: remove trailing spaces to prevent yamldocs using "compact" nota…
thaJeztah Mar 11, 2021
897293c
Merge pull request #3007 from thaJeztah/20.10_backport_fix_yaml_forma…
silvin-lubecki Mar 11, 2021
f508ce9
vendor: github.com/theupdateframework/notary v0.7.0
thaJeztah Jan 14, 2021
6ebf765
vendor: update notary to 5f1f4a34
tonistiigi Mar 4, 2021
0196098
vendor: github.com/theupdateframework/notary v0.7.0-21-gbf96a202
thaJeztah Mar 31, 2021
e77605c
Merge pull request #3036 from thaJeztah/20.10_backport_bump_notary
silvin-lubecki Apr 1, 2021
4c3b87d
config.Load() remove unneeded locks
thaJeztah Mar 25, 2021
55b2abb
Merge pull request #3000 from thaJeztah/20.10_backport_old_config_dep…
tiborvass Apr 1, 2021
58061d2
dockerfile based binary building
tonistiigi Mar 3, 2021
fcc05e5
update windows resources generation
tonistiigi Mar 5, 2021
33dacda
add windows/arm64 target
tonistiigi Mar 5, 2021
048a846
update circleci cross target
tonistiigi Mar 5, 2021
c1c3d3b
remove unused targets
tonistiigi Mar 5, 2021
84cc7d8
update readme with new examples
tonistiigi Mar 5, 2021
8bc4062
set default version from git
tonistiigi Mar 5, 2021
feb6f43
Makefile: have binary, cross, dynbinary targets not use docker for ba…
Apr 6, 2021
dc017bd
bake: remove windows targets other than windows/amd64
Apr 6, 2021
370c289
Merge pull request #3042 from tiborvass/20.10-xx-build
tiborvass Apr 9, 2021
6b48c78
docs/reference/builder: touch-up code-hints and some minor changes
thaJeztah Apr 20, 2021
0c442dc
docs/reference/builder: remove outdated example Dockerfiles
thaJeztah Apr 21, 2021
234036d
docs/reference/builder: update example output, and some rephrasing
thaJeztah Apr 21, 2021
3de2cc6
docs/reference/builder: update "syntax" section
thaJeztah Apr 21, 2021
fbbf1be
docs: remove experimental ipvlan docs, as they were migrated
thaJeztah Apr 24, 2021
4630fe0
Merge pull request #3071 from thaJeztah/20.10_backport_remove_experim…
silvin-lubecki Apr 30, 2021
7ab2d19
Merge pull request #3069 from thaJeztah/20.10_backport_builder_syntax…
silvin-lubecki Apr 30, 2021
ffe40dc
docs: update some examples for proxy configuration
thaJeztah Apr 30, 2021
ee20fa1
docs: add reference for "docker config" commands
thaJeztah Apr 30, 2021
ed71df1
docs: cleanup / refactor cli doc
thaJeztah Apr 30, 2021
bb03b9d
Merge pull request #3078 from thaJeztah/20.10_backport_update_proxy_e…
silvin-lubecki May 4, 2021
1ff45aa
Update stop.md
cvermilion Apr 3, 2021
4fbdf3f
docs: document log-opts for "dual logging" cache
thaJeztah Apr 17, 2021
9780f41
Merge pull request #3079 from thaJeztah/20.10_backport_update_docker_…
silvin-lubecki May 4, 2021
8264f5b
docs: dockerd: fix broken link and markdown touch-ups
thaJeztah May 12, 2021
00755d7
printServerWarningsLegacy: silence "No kernel memory limit support"
AkihiroSuda May 4, 2021
12e2f94
printServerWarningsLegacy: silence "No oom kill disable support" on c…
AkihiroSuda May 4, 2021
78fcd90
docs: Fix broken jump link
ErikHumphrey May 13, 2021
f291a49
Swap "LABEL maintainer" for the OCI pre-defined "org.opencontainers.i…
tianon May 4, 2021
c88e643
Merge pull request #3100 from thaJeztah/20.10_backport_docs_fixes
silvin-lubecki May 19, 2021
54b529f
Merge pull request #3099 from thaJeztah/20.10_backport_silence_unhand…
silvin-lubecki May 19, 2021
e0d47b1
Merge pull request #3093 from thaJeztah/20.10_backport_fix_plugin_link
silvin-lubecki May 19, 2021
706ca79
Revert "[20.10] Revert "Ignore SIGURG on Linux.""
thaJeztah May 25, 2021
88de81f
Fix `docker start` blocking on signal handling
cpuguy83 Mar 2, 2021
032e485
ForwardAllSignals: check if channel is closed, and remove warning
thaJeztah Mar 1, 2021
2945ba4
Ignore SIGURG on Darwin too
djs55 May 21, 2021
746c553
docs: fix link to command-line reference
thaJeztah May 26, 2021
f485f66
Merge pull request #3111 from thaJeztah/20.10_backport_fix_reference_…
silvin-lubecki May 31, 2021
f0df350
Merge pull request #3107 from thaJeztah/20.10_backport_sigurg_handling
silvin-lubecki May 31, 2021
ab733b5
[20.10] vendor: github.com/docker/docker v20.10.7
thaJeztah Jun 7, 2021
6da4ee4
Merge pull request #3123 from thaJeztah/20.10_backport_bump_docker_20…
silvin-lubecki Jun 15, 2021
e3a9a92
vendor: moby/term, Azure/go-ansiterm for golang.org/x/sys/windows compat
thaJeztah Jun 10, 2021
00ea8bd
Merge pull request #3132 from thaJeztah/20.10_backport_bump_term_ansi…
silvin-lubecki Jun 21, 2021
0168626
vendor: github.com/docker/docker-credential-helpers v0.6.4
thaJeztah Jun 7, 2021
063e3dd
Merge pull request #3156 from thaJeztah/20.10_backport_bump_credentia…
silvin-lubecki Jun 23, 2021
b639ea8
Deprecate Kubernetes stack support
mat007 Jun 28, 2021
0793f96
Deprecate Kubernetes stack support
mat007 Jun 29, 2021
1d37fb3
Deprecate Kubernetes context support
mat007 Jul 1, 2021
c7cf60f
docs: Fix wrong bridge driver option
pn11 Feb 26, 2021
f3dd1ee
Fix minor wording
tedt10e Jun 4, 2021
eedfe50
Jenkinsfile: update labels to prevent running on cgroups v2
thaJeztah Jun 15, 2021
0d17280
Jenkinsfile: update old engine version to 19.03
thaJeztah Jun 9, 2021
644c003
circleCI: update docker engine to 20.10.6
thaJeztah Jun 9, 2021
8279b71
Merge pull request #3176 from thaJeztah/20.10_backport_update_ci_engine
thaJeztah Jul 2, 2021
bfcd17b
Merge pull request #3175 from thaJeztah/20.10_backport_docs_fixes
thaJeztah Jul 7, 2021
48e6b44
Dockerfile: remove custom go build for windows/arm64
tonistiigi Jun 17, 2021
c1492ea
Merge pull request #3196 from thaJeztah/20.10_backport_go1.17_for_win…
thaJeztah Jul 19, 2021
f63cb8b
vendor: github.com/russross/blackfriday/v2 v2.1.0
thaJeztah Jul 21, 2021
260ba1a
vendor: cpuguy83/go-md2man/v2 v2.0.1
thaJeztah Jul 21, 2021
a555c85
Merge pull request #3200 from thaJeztah/20.10_backport_update_md2man
silvin-lubecki Jul 22, 2021
8a64739
Update Dockerfiles to latest syntax, remove "experimental"
thaJeztah Jul 22, 2021
e9b8231
Merge pull request #3205 from thaJeztah/20.10_backport_update_dockerf…
silvin-lubecki Jul 22, 2021
f9d091f
Merge pull request #3174 from thaJeztah/20.10_backport_deprecate_kube
thaJeztah Jul 28, 2021
68a5ca8
cli/context: ignore linting warnings about RFC 1423 encryption
thaJeztah Jul 26, 2021
8437cfe
context: deprecate support for encrypted TLS private keys
thaJeztah Jul 28, 2021
a6f6b5f
Merge pull request #3219 from thaJeztah/20.10_backport_deprecate_encr…
thaJeztah Jul 29, 2021
c98e9c4
Use designated test domains (RFC2606) in tests
thaJeztah Apr 30, 2021
1e9575e
cli/config/configfile: various test cleanups
thaJeztah Apr 30, 2021
6288e8b
change TestNewAPIClientFromFlagsWithHttpProxyEnv to an e2e test
thaJeztah Jul 28, 2021
0b924e5
Update to go1.16.6
thaJeztah Jul 15, 2021
3967b7d
Merge pull request #3224 from thaJeztah/20.10_backport_bump_go_1.16.6
thaJeztah Jul 29, 2021
42d1c02
registry: ensure default auth config has address
samuelkarp Jul 22, 2021
2012fbf
Update Go to 1.16.7
thaJeztah Aug 7, 2021
62eae52
Merge pull request #3236 from thaJeztah/20.10_backport_bump_go_1.16.7
thaJeztah Aug 17, 2021
061051c
docs: add missing redirect, and remove /go/experimental redirect
thaJeztah Aug 23, 2021
893e52c
Merge pull request #2 from moby/cli-ghsa-99pg-grm5-qq3v-default-authc…
thaJeztah Sep 9, 2021
44fdac1
Update Go to 1.16.8
thaJeztah Sep 15, 2021
c2ea9bc
Merge pull request #3 from moby/20.10_backport_go_1.16.8
thaJeztah Sep 23, 2021
6c1c8b5
docs: fix search results by filterd is-official
clover0 Sep 30, 2021
d0014a8
docs: fix description of restart-delay to mention max (1 minute)
thaJeztah Sep 22, 2021
cbf0d2b
docs: fix some broken anchors
thaJeztah Sep 13, 2021
77db97d
Use private network address for default-address-pools setting in daem…
pepawel Sep 11, 2021
c72057c
docs: move checkpoint/restore doc from experimental into reference
thaJeztah Aug 23, 2021
400f810
experimental: fix broken link to "checkpoint and restore" page
thaJeztah Sep 7, 2021
fa46b92
docs: rewrite reference docs for --stop-signal and --stop-timeout
thaJeztah Aug 21, 2021
f2e79b8
docs: use "console" code-hint for shell examples
thaJeztah Aug 21, 2021
292779a
Add doc for BUILDKIT_PROGRESS env var
crazy-max Jul 25, 2021
44064f5
Fix typo in documentation - build.md
IvanGrund Jul 14, 2021
bce2e1f
docs: create.md: typo fix
fishmandev Oct 4, 2021
859e303
Merge pull request #3268 from thaJeztah/20.10_backport_add_redirect
silvin-lubecki Oct 6, 2021
aa5b6b7
Merge pull request #3326 from thaJeztah/20.10_backport_docs
silvin-lubecki Oct 6, 2021
8260476
docs: remove trailing space to fix generated YAML format
thaJeztah Oct 7, 2021
adb01ca
docs: some minor touch-ups in checkpoint reference
thaJeztah Oct 11, 2021
82f9d59
info: skip client-side warning about seccomp profile on API >= 1.42
thaJeztah Aug 3, 2021
1c0927a
Dockerfile: update tonistiigi/xx to 1.0.0-rc.2, add XX_VERSION arg
thaJeztah Sep 15, 2021
0b56256
Merge pull request #3336 from thaJeztah/20.10_backport_update_xx_image
silvin-lubecki Oct 11, 2021
c4cb298
Merge pull request #3335 from thaJeztah/20.10_backport_remove_seccomp…
thaJeztah Oct 15, 2021
0e20c1f
Update Go to 1.16.9
thaJeztah Oct 8, 2021
9989fdb
Update most links in docs to use https by default
PeterDaveHello Oct 14, 2021
241523c
Merge pull request #3334 from thaJeztah/20.10_backport_docs
silvin-lubecki Oct 15, 2021
b485636
Merge pull request #3331 from thaJeztah/20.10_backport_bump_go_1.16.9
silvin-lubecki Oct 15, 2021
03fa8f9
Update Go to 1.16.10
thaJeztah Nov 5, 2021
dea9396
Merge pull request #3358 from thaJeztah/20.10_backport_bump_go_1.16.10
thaJeztah Nov 17, 2021
4de40a8
Update Go to 1.16.11
thaJeztah Dec 6, 2021
cedc602
Merge pull request #3380 from thaJeztah/20.10_backport_bump_go_1.16.11
silvin-lubecki Dec 7, 2021
38dd744
[20.10] Update Go to 1.16.12
thaJeztah Dec 12, 2021
e91ed57
Merge pull request #3390 from thaJeztah/20.10_bump_go_1.16.12
silvin-lubecki Dec 12, 2021
ee1ac1b
fix innocuous data-race when config.Load called in parallel
coryb Aug 21, 2021
f3ff8e6
[20.10] vendor: compose-on-kubernetes v0.5.0 to remove github.com/gol…
thaJeztah Feb 3, 2022
96f2cf8
Merge pull request #3418 from thaJeztah/20.10_update_compose_on_kuber…
silvin-lubecki Feb 14, 2022
3624019
[20.10] update Go to 1.16.13
thaJeztah Feb 15, 2022
fd5fc61
[20.10] Update Go to 1.16.14
thaJeztah Feb 15, 2022
3f9857e
Merge pull request #3428 from thaJeztah/20.10_update_go_1.16.14
thaJeztah Feb 18, 2022
59a8a09
Merge pull request #3410 from thaJeztah/20.10_backport_fix_data_race
thaJeztah Feb 18, 2022
5c6723d
Correct device syntax to --gpus
patel-zeel Jan 30, 2022
c9737e1
docs/daemon: replace deprecated '-g' option for '--data-root'
thaJeztah Jan 11, 2022
40fe057
Update Ubuntu version number references in push.md
mikedalton Dec 8, 2021
aa78937
Update stats.md add example json output
Dec 12, 2021
e97c7b2
added missing closing parenthese
jlecordier Dec 8, 2021
f1002eb
Fix typo
SuperSandro2000 Oct 18, 2021
4065e12
format create.md table
Gsealy Sep 2, 2021
b721998
Fixing typo (his --> its)
brdbkr Aug 26, 2021
04104a0
Update dockerd.md
LeoSko Jul 29, 2021
c0e952c
Fix the (dead) link for docs for Dockerfile syntax reference
tnir Jun 28, 2021
62d27c3
Update WORKDIR command information
govindrai Jun 16, 2021
700364e
Fix mistake with env var example in docker run docs
JonZeolla Feb 22, 2021
f3764ff
Merge pull request #3430 from thaJeztah/20.10_backport_docs_fixes
silvin-lubecki Feb 22, 2022
a282e0c
[20.10] update to go 1.16.15 to address CVE-2022-24921
thaJeztah Mar 4, 2022
a224086
Merge pull request #3461 from thaJeztah/20.10_bump_go_1.16.15
thaJeztah Mar 4, 2022
0a05279
Add main CI workflow
nosamad Sep 23, 2021
f0df241
Add release workflow
nosamad Sep 28, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
40 changes: 17 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ jobs:

lint:
working_directory: /work
docker: [{image: 'docker:19.03-git'}]
docker: [{image: 'docker:20.10-git'}]
environment:
DOCKER_BUILDKIT: 1
steps:
- checkout
- setup_remote_docker:
version: 19.03.12
version: 20.10.6
reusable: true
exclusive: false
- run:
Expand Down Expand Up @@ -39,14 +39,15 @@ jobs:

cross:
working_directory: /work
docker: [{image: 'docker:19.03-git'}]
docker: [{image: 'docker:20.10-git'}]
environment:
DOCKER_BUILDKIT: 1
BUILDX_VERSION: "v0.5.1"
parallelism: 3
steps:
- checkout
- setup_remote_docker:
version: 19.03.12
version: 20.10.6
reusable: true
exclusive: false
- run:
Expand All @@ -55,33 +56,26 @@ jobs:
- run:
name: "Docker info"
command: docker info
- run:
name: "Cross - build image"
command: |
docker build --progress=plain -f dockerfiles/Dockerfile.cross --tag cli-builder:$CIRCLE_BUILD_NUM .
- run:
name: "Cross"
command: |
name=cross-$CIRCLE_BUILD_NUM-$CIRCLE_NODE_INDEX
docker run \
-e CROSS_GROUP=$CIRCLE_NODE_INDEX \
--name $name cli-builder:$CIRCLE_BUILD_NUM \
make cross
docker cp \
$name:/go/src/github.com/docker/cli/build \
/work/build
- run: apk add make curl
- run: mkdir -vp ~/.docker/cli-plugins/
- run: curl -fsSL --output ~/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/${BUILDX_VERSION}/buildx-${BUILDX_VERSION}.linux-amd64
- run: chmod a+x ~/.docker/cli-plugins/docker-buildx
- run: docker buildx version
- run: docker context create buildctx
- run: docker buildx create --use buildctx && docker buildx inspect --bootstrap
- run: GROUP_INDEX=$CIRCLE_NODE_INDEX GROUP_TOTAL=$CIRCLE_NODE_TOTAL docker buildx bake cross --progress=plain
- store_artifacts:
path: /work/build

test:
working_directory: /work
docker: [{image: 'docker:19.03-git'}]
docker: [{image: 'docker:20.10-git'}]
environment:
DOCKER_BUILDKIT: 1
steps:
- checkout
- setup_remote_docker:
version: 19.03.12
version: 20.10.6
reusable: true
exclusive: false
- run:
Expand Down Expand Up @@ -122,13 +116,13 @@ jobs:

validate:
working_directory: /work
docker: [{image: 'docker:19.03-git'}]
docker: [{image: 'docker:20.10-git'}]
environment:
DOCKER_BUILDKIT: 1
steps:
- checkout
- setup_remote_docker:
version: 19.03.12
version: 20.10.6
reusable: true
exclusive: false
- run:
Expand Down
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.circleci
.dockerignore
.git
.github
.gitignore
appveyor.yml
Expand Down
120 changes: 120 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: CI

on:
push:
branches:
- master
- 'release/**'
pull_request:
branches:
- master
- 'release/**'

env:
PLATFORM: Docker Engine - WAGO (Community)
DEFAULT_PRODUCT_LICENSE: Community Engine
DOCKER_GITCOMMIT: ${{ github.sha }}
DOCKER_EXPERIMENTAL: 1
DOCKER_GRAPHDRIVER: overlay2
BUILDKIT_PROGRESS: plain
BASE_DEBIAN_DISTRO: buster
GO_VERSION: 1.16.7
APT_MIRROR: cdn-fastly.deb.debian.org
CHECK_CONFIG_COMMIT: 78405559cfe5987174aa2cb6463b9b2c1b917255
TESTDEBUG: 0
TIMEOUT: 120m
BUILD_OUTPUT: build
VERSION: '20.10-dev'

jobs:
build-static-binary:

strategy:
fail-fast: false
matrix:
include:
- arch: amd64
platform: linux/amd64
- arch: arm32v7
platform: linux/arm/v7

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up node for Docker make
id: setup-docker-make
uses: WAGO/docker-actions/setup-docker-make@release/v1.0
with:
golang-version: ${{ env.GO_VERSION }}
base-debian-distro: ${{ env.BASE_DEBIAN_DISTRO }}
host-arch: ${{ matrix.arch }}
target-platform: ${{ matrix.platform }}
check-config-commit: ${{ env.CHECK_CONFIG_COMMIT }}
project-version: ${{ env.VERSION }}

- name: Set bundle meta information
id: set-bundle-info
run: |
input_path="${BUILD_OUTPUT}/docker-cli"
echo "::set-output name=input-path::${input_path}"

- name: Build binary
uses: docker/build-push-action@v2
with:
target: binary
context: .
push: false
outputs: |
type=local,dest=${{ steps.set-bundle-info.outputs.input-path }}
cache-from: type=local,src=${{ steps.setup-docker-make.outputs.buildx-cache }}
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
platforms: |
${{ matrix.platform }}
build-args: |
APT_MIRROR
PLATFORM
DEFAULT_PRODUCT_LICENSE
DOCKER_GITCOMMIT
VERSION=${{ steps.setup-docker-make.outputs.version }}
CGO_ENABLED=1
BASE_VARIANT=${{ env.BASE_DEBIAN_DISTRO }}
GO_VERSION=${{ env.GO_VERSION }}
load: false

# Temp fix
# https://github.com/docker/build-push-action/issues/252
# https://github.com/moby/buildkit/issues/1896
- name: Move cache
env:
BUILDX_CACHE: ${{ steps.setup-docker-make.outputs.buildx-cache }}
run: |
rm -rf "${BUILDX_CACHE}"
mv /tmp/.buildx-cache-new "${BUILDX_CACHE}"

- name: Create bundle
id: create-bundle
env:
BUNDLE_PLATFORM: ${{ steps.setup-docker-make.outputs.target-platform-id }}
BUNDLE_INPUT_PATH: ${{ steps.set-bundle-info.outputs.input-path }}
run: |
bundle_archive_name="docker-cli-static-${BUNDLE_PLATFORM}.tar"
bundle_archive="${BUILD_OUTPUT}/${bundle_archive_name}"
tar -C "${BUNDLE_INPUT_PATH}" -cvf "${bundle_archive}" .
echo "::set-output name=archive::${bundle_archive}"
echo "::set-output name=archive-name::${bundle_archive_name}"

- name: Upload bundle
uses: actions/upload-artifact@v2
with:
name: ${{ steps.create-bundle.outputs.archive-name }}
path: ${{ steps.create-bundle.outputs.archive }}
retention-days: 7

- name: Print artifact version informations
env:
BUNDLE_INPUT_PATH: ${{ steps.set-bundle-info.outputs.input-path }}
run: |
"${BUNDLE_INPUT_PATH}/docker" version
Loading