Skip to content

Commit 364a189

Browse files
committed
Add a local registry in github actions for us to test with
1 parent 3bdc004 commit 364a189

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/test.yml

+15
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ env:
4040
GIT_AUTHOR_EMAIL: [email protected]
4141
GIT_AUTHOR_NAME: CI User
4242

43+
4344
jobs:
4445
test:
4546
# Don't run scheduled tests on forks
@@ -72,8 +73,22 @@ jobs:
7273
python_version: "3.9"
7374
repo_type: venv
7475

76+
services:
77+
# So that we can test this in PRs/branches
78+
local-registry:
79+
image: registry:2
80+
ports:
81+
- 5000:5000
82+
7583
steps:
7684
- uses: actions/checkout@v4
85+
86+
- name: Set up Docker Buildx
87+
uses: docker/setup-buildx-action@v3
88+
with:
89+
# Allows pushing to registry on localhost:5000
90+
driver-opts: network=host
91+
7792
- uses: actions/setup-python@v5
7893
with:
7994
python-version: "${{ matrix.python_version }}"

0 commit comments

Comments
 (0)