Skip to content

Commit

Permalink
fiddle with colima settings
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Aug 25, 2023
1 parent e5acba7 commit d4c1600
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:
- name: Set up Docker
uses: crazy-max/ghaction-setup-docker@v1
with:
version: v24.0.1
version: v24.0.5
if: ${{ startsWith( runner.os, 'macos') }}
- name: Setup MacOS docker socket
run: echo "DOCKER_HOST="unix://$HOME/.colima/default/docker.sock"" >> $GITHUB_ENV
run: echo "DOCKER_HOST="unix://$HOME/.colima/gha/docker.sock"" >> $GITHUB_ENV
if: ${{ startsWith( runner.os, 'macos') }}
- name: Test Compatibility
run: |-
Expand Down Expand Up @@ -97,10 +97,10 @@ jobs:
- name: Set up Docker
uses: crazy-max/ghaction-setup-docker@v1
with:
version: v24.0.1
version: v24.0.5
if: ${{ startsWith( runner.os, 'macos') }}
- name: Setup MacOS docker socket
run: echo "DOCKER_HOST="unix://$HOME/.colima/default/docker.sock"" >> $GITHUB_ENV
run: echo "DOCKER_HOST="unix://$HOME/.colima/gha/docker.sock"" >> $GITHUB_ENV
if: ${{ startsWith( runner.os, 'macos') }}
- name: Test Compatibility
run: |-
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/hof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ jobs:
echo "HOF_TAG=${TAG}" >> $GITHUB_ENV
- name: Setup Docker on MacOS
run: |-
brew list
brew reinstall -f --force-bottle qemu lima colima docker
limactl info
colima stop --force
colima delete
colima start debug --cpu 3 --memory 10 --disk 12
colima start gha --cpu 3 --memory 10 --disk 12
if: ${{ startsWith( runner.os, 'macos') }}
- name: Setup MacOS docker socket
run: echo "DOCKER_HOST="unix://$HOME/.colima/default/docker.sock"" >> $GITHUB_ENV
run: echo "DOCKER_HOST="unix://$HOME/.colima/gha/docker.sock"" >> $GITHUB_ENV
if: ${{ startsWith( runner.os, 'macos') }}
- name: Test Compatibility
run: |-
Expand Down
6 changes: 4 additions & 2 deletions ci/gha/common/steps.cue
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,20 @@ Steps: {
machack: {
name: "Setup Docker on MacOS"
run: """
brew list
brew reinstall -f --force-bottle qemu lima colima docker
limactl info
colima stop --force
colima delete
colima start debug --cpu 3 --memory 10 --disk 12
colima start gha --cpu 3 --memory 10 --disk 12
"""
"if": "${{ startsWith( runner.os, 'macos') }}"
}

macos: {
name: "Setup MacOS docker socket"
run: """
echo "DOCKER_HOST=\"unix://$HOME/.colima/default/docker.sock\"" >> $GITHUB_ENV
echo "DOCKER_HOST=\"unix://$HOME/.colima/gha/docker.sock\"" >> $GITHUB_ENV
"""
"if": "${{ startsWith( runner.os, 'macos') }}"
}
Expand Down
2 changes: 1 addition & 1 deletion ci/gha/common/vars.cue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Formatters: [
]

Versions: {
docker: "24.0.1"
docker: "24.0.5"
go: "1.21.x" | ["1.20.x", "1.21.x"]
os: "ubuntu-latest" | ["ubuntu-latest", "macos-latest"]
}

0 comments on commit d4c1600

Please sign in to comment.