5 Commits

Author SHA1 Message Date
ce60bfdfe1 Merge pull request #26 from crazy-max/colima-start-args
docs: define custom "colima start" arguments
2023-08-28 09:12:42 +02:00
24d5692d29 docs: define custom "colima start" arguments 2023-08-28 08:54:24 +02:00
c322702919 Merge pull request #25 from crazy-max/update-toolkit
bump @docker/actions-toolkit from 0.11.0 to 0.12.0-rc.1
2023-08-28 08:44:44 +02:00
ba6df22a99 update generated content 2023-08-28 08:36:20 +02:00
751eb0de7b bump @docker/actions-toolkit from 0.11.0 to 0.12.0-rc.1 2023-08-28 08:35:21 +02:00
6 changed files with 44 additions and 9 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

6
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -22,7 +22,7 @@
"license": "Apache-2.0",
"dependencies": {
"@actions/core": "^1.10.0",
"@docker/actions-toolkit": "^0.11.0",
"@docker/actions-toolkit": "^0.12.0-rc.1",
"uuid": "^9.0.0"
},
"devDependencies": {

View File

@ -480,10 +480,10 @@
dependencies:
"@cspotcode/source-map-consumer" "0.8.0"
"@docker/actions-toolkit@^0.11.0":
version "0.11.0"
resolved "https://registry.yarnpkg.com/@docker/actions-toolkit/-/actions-toolkit-0.11.0.tgz#008af613803161f945c75392b5b90d6f64e63f57"
integrity sha512-ud2ZZfNpmOP3ayqINhXG9M6CmRN41gRWydMAuU0GP9Q1oZETAn81Qy3lYSvCB3eD57Hyl4PtAq56SxsIq+twSQ==
"@docker/actions-toolkit@^0.12.0-rc.1":
version "0.12.0-rc.1"
resolved "https://registry.yarnpkg.com/@docker/actions-toolkit/-/actions-toolkit-0.12.0-rc.1.tgz#a6a163770c776db4c32106e497d752b91378cff1"
integrity sha512-/p/zoVOh6UePqtRu49c/bI5oxOfs2GvPL9s8DL5y02swkx6kETEpwyMRbYTalDVlvsTcDJwPF8UbLZRheuaxFA==
dependencies:
"@actions/cache" "^3.2.2"
"@actions/core" "^1.10.0"