aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-10-18 19:20:30 +0100
committerGravatar Joe Banks <[email protected]>2025-10-18 21:20:00 +0100
commit8f77899586ea40c0edf3b9b10cc753f416418d16 (patch)
tree815d7c84585a26224a4547654008f9e2479e9e82
parentHandle memory OOMs instead of process kills (diff)
Use local registry for final deploy stage
-rw-r--r--.github/workflows/deploy.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index d448b25..2dfb4a6 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -15,6 +15,11 @@ jobs:
deploy:
name: Build, push, & deploy
runs-on: ubuntu-latest
+ services:
+ registry:
+ image: registry:2
+ ports:
+ - 5000:5000
steps:
- name: Download image artifact
@@ -58,6 +63,7 @@ jobs:
tags: |
ghcr.io/python-discord/snekbox:latest
ghcr.io/python-discord/snekbox:${{ inputs.version }}
+ localhost:5000/local/snekbox:${{ inputs.version }}
- name: Build PyDis final image
uses: docker/build-push-action@v6
@@ -67,6 +73,7 @@ jobs:
push: true
cache-from: |
ghcr.io/python-discord/snekbox:latest-pydis
+ build-args: SNEKBOX_IMAGE=localhost:5000/local/snekbox:${{ inputs.version }}
cache-to: type=inline
tags: |
ghcr.io/python-discord/snekbox:latest-pydis