Skip to content

Commit 8f77899

Browse files
committed
Use local registry for final deploy stage
1 parent 51f9b1c commit 8f77899

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/deploy.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
deploy:
1616
name: Build, push, & deploy
1717
runs-on: ubuntu-latest
18+
services:
19+
registry:
20+
image: registry:2
21+
ports:
22+
- 5000:5000
1823

1924
steps:
2025
- name: Download image artifact
@@ -58,6 +63,7 @@ jobs:
5863
tags: |
5964
ghcr.io/python-discord/snekbox:latest
6065
ghcr.io/python-discord/snekbox:${{ inputs.version }}
66+
localhost:5000/local/snekbox:${{ inputs.version }}
6167
6268
- name: Build PyDis final image
6369
uses: docker/build-push-action@v6
@@ -67,6 +73,7 @@ jobs:
6773
push: true
6874
cache-from: |
6975
ghcr.io/python-discord/snekbox:latest-pydis
76+
build-args: SNEKBOX_IMAGE=localhost:5000/local/snekbox:${{ inputs.version }}
7077
cache-to: type=inline
7178
tags: |
7279
ghcr.io/python-discord/snekbox:latest-pydis

0 commit comments

Comments
 (0)