forgejo-runner-act/pkg
Jay Pipes d67e282f68
use container image platform only on docker 1.41+ (#591)
Commit af5140f13e introduced support for
specifying a container image platform for cross-platform image building.

Unfortunately, attempting to execute a docker command that includes the
`--platform` flag against Docker daemons using API Version 1.40 and
before results in the following error:

```
"specify container image platform" requires API version 1.41, but the Docker daemon API version is 1.40
```

To allow `act` to be used on the 19.03 Docker CE and earlier versions,
this patch simply checks the Docker daemon API version and only
specifies platform specification when the daemon API version is 1.41 or
greater.

Fixes Issue #586
2021-03-30 10:10:42 -07:00
..
common Fix tests on Windows (#562) 2021-03-12 16:23:03 -08:00
container use container image platform only on docker 1.41+ (#591) 2021-03-30 10:10:42 -07:00
model Update Shell Tasks to match ScriptHandlerHelpers (#575) 2021-03-29 10:06:51 -07:00
runner Update Shell Tasks to match ScriptHandlerHelpers (#575) 2021-03-29 10:06:51 -07:00