Skip to content

Commit ce60bfd

Browse files
authored
Merge pull request #26 from crazy-max/colima-start-args
docs: define custom "colima start" arguments
2 parents c322702 + 24d5692 commit ce60bfd

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/ci.yml

+12
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,18 @@ jobs:
131131
if: always()
132132
uses: crazy-max/ghaction-dump-context@v2
133133

134+
colima-start-args:
135+
runs-on: macos-latest
136+
steps:
137+
-
138+
name: Checkout
139+
uses: actions/checkout@v3
140+
-
141+
name: Set up Docker
142+
uses: ./
143+
env:
144+
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
145+
134146
build-linux:
135147
runs-on: ubuntu-latest
136148
steps:

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ___
1616
* [Usage](#usage)
1717
* [Quick start](#quick-start)
1818
* [Daemon configuration](#daemon-configuration)
19+
* [Define custom `colima start` arguments (macOS)](#define-custom-colima-start-arguments-macos)
1920
* [Customizing](#customizing)
2021
* [inputs](#inputs)
2122
* [Notes](#notes)
@@ -71,6 +72,28 @@ jobs:
7172
}
7273
```
7374

75+
### Define custom `colima start` arguments (macOS)
76+
77+
You can define custom [`colima start` arguments](https://github.com/abiosoft/colima#customizing-the-vm)
78+
using the `COLIMA_START_ARGS` environment variable to customize the VM:
79+
80+
```yaml
81+
name: ci
82+
83+
on:
84+
push:
85+
86+
jobs:
87+
docker:
88+
runs-on: macos-latest
89+
steps:
90+
-
91+
name: Set up Docker
92+
uses: crazy-max/ghaction-setup-docker@v1
93+
env:
94+
COLIMA_START_ARGS: --cpu 4 --memory 8 --disk 32
95+
```
96+
7497
## Customizing
7598

7699
### inputs

0 commit comments

Comments
 (0)