Skip to content

Commit

Permalink
ci: manually start registry
Browse files Browse the repository at this point in the history
  • Loading branch information
adamblake committed Dec 17, 2024
1 parent 4ff64a8 commit 130e583
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ jobs:
image: ${{ inputs.image }}
digest: ${{ steps.build.outputs.digest }}

services:
registry:
image: registry:2
ports:
- 5000:5000

steps:
# https://github.com/jlumbroso/free-disk-space
- name: Free Disk Space (Ubuntu)
Expand All @@ -86,17 +80,22 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install colima and Docker CLI
- name: Start Docker
if: runner.os == 'macOS' && runner.arch == 'ARM64'
run: |
brew install colima docker
colima start
echo "DOCKER_HOST=$(colima docker-env | grep DOCKER_HOST | cut -d= -f2)" >> $GITHUB_ENV
- name: Start Docker
if: runner.os == 'macOS' && runner.arch == 'ARM64'
# Start Docker Registry Manually
- name: Start Local Docker Registry
run: |
docker run -d --name registry -p 5000:5000 registry:2
# Verify Registry is Running
- name: Verify Local Registry
run: |
# Point docker client to Colima's socket
echo "export DOCKER_HOST=unix://$HOME/.colima/default/docker.sock" >> $GITHUB_ENV
curl -v http://localhost:5000/v2/
# https://github.com/prefix-dev/setup-pixi
- uses: prefix-dev/[email protected]
Expand Down

0 comments on commit 130e583

Please sign in to comment.