diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 499dba5..416c419 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/README.md b/README.md index 41b35fa..70f1974 100644 --- a/README.md +++ b/README.md @@ -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