Merge pull request #26 from crazy-max/colima-start-args

docs: define custom "colima start" arguments
This commit is contained in:
CrazyMax 2023-08-28 09:12:42 +02:00 committed by GitHub
commit ce60bfdfe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View File

@ -131,6 +131,18 @@ jobs:
if: always()
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:
runs-on: ubuntu-latest
steps:

View File

@ -16,6 +16,7 @@ ___
* [Usage](#usage)
* [Quick start](#quick-start)
* [Daemon configuration](#daemon-configuration)
* [Define custom `colima start` arguments (macOS)](#define-custom-colima-start-arguments-macos)
* [Customizing](#customizing)
* [inputs](#inputs)
* [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
### inputs