Skip to content

Commit

Permalink
Merge pull request #26 from crazy-max/colima-start-args
Browse files Browse the repository at this point in the history
docs: define custom "colima start" arguments
  • Loading branch information
crazy-max authored Aug 28, 2023
2 parents c322702 + 24d5692 commit ce60bfd
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ce60bfd

Please sign in to comment.