mirror of
https://github.com/docker/setup-docker-action.git
synced 2025-04-19 23:30:02 +02:00
Merge pull request #26 from crazy-max/colima-start-args
docs: define custom "colima start" arguments
This commit is contained in:
commit
ce60bfdfe1
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -131,6 +131,18 @@ jobs:
|
|||||||
if: always()
|
if: always()
|
||||||
uses: crazy-max/ghaction-dump-context@v2
|
uses: crazy-max/ghaction-dump-context@v2
|
||||||
|
|
||||||
|
colima-start-args:
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: Set up Docker
|
||||||
|
uses: ./
|
||||||
|
env:
|
||||||
|
COLIMA_START_ARGS: --cpu 4 --memory 8 --disk 32 --dns 1.1.1.1 --dns 8.8.8.8 --dns-host example.com=1.2.3.4
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
23
README.md
23
README.md
@ -16,6 +16,7 @@ ___
|
|||||||
* [Usage](#usage)
|
* [Usage](#usage)
|
||||||
* [Quick start](#quick-start)
|
* [Quick start](#quick-start)
|
||||||
* [Daemon configuration](#daemon-configuration)
|
* [Daemon configuration](#daemon-configuration)
|
||||||
|
* [Define custom `colima start` arguments (macOS)](#define-custom-colima-start-arguments-macos)
|
||||||
* [Customizing](#customizing)
|
* [Customizing](#customizing)
|
||||||
* [inputs](#inputs)
|
* [inputs](#inputs)
|
||||||
* [Notes](#notes)
|
* [Notes](#notes)
|
||||||
@ -71,6 +72,28 @@ jobs:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Define custom `colima start` arguments (macOS)
|
||||||
|
|
||||||
|
You can define custom [`colima start` arguments](https://github.com/abiosoft/colima#customizing-the-vm)
|
||||||
|
using the `COLIMA_START_ARGS` environment variable to customize the VM:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
name: ci
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Set up Docker
|
||||||
|
uses: crazy-max/ghaction-setup-docker@v1
|
||||||
|
env:
|
||||||
|
COLIMA_START_ARGS: --cpu 4 --memory 8 --disk 32
|
||||||
|
```
|
||||||
|
|
||||||
## Customizing
|
## Customizing
|
||||||
|
|
||||||
### inputs
|
### inputs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user