aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2025-10-18 16:14:25 +0100
committerGravatar Joe Banks <[email protected]>2025-10-18 21:20:00 +0100
commitfda401446469fa1ec2e75f64f478d9b03b197319 (patch)
tree21dd1fa38c22456a0060d025526f62ea97731e85
parentUse pydis build for Docker compose (diff)
Build and use PyDis image when deploying to Kubernetes
-rw-r--r--.github/workflows/deploy.yaml15
1 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index 23c76e9..d448b25 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -59,6 +59,19 @@ jobs:
ghcr.io/python-discord/snekbox:latest
ghcr.io/python-discord/snekbox:${{ inputs.version }}
+ - name: Build PyDis final image
+ uses: docker/build-push-action@v6
+ with:
+ context: .
+ file: ./Dockerfile.pydis
+ push: true
+ cache-from: |
+ ghcr.io/python-discord/snekbox:latest-pydis
+ cache-to: type=inline
+ tags: |
+ ghcr.io/python-discord/snekbox:latest-pydis
+ ghcr.io/python-discord/snekbox:${{ inputs.version }}-pydis
+
# Deploy to Kubernetes.
- name: Install kubectl
uses: azure/setup-kubectl@v4
@@ -74,7 +87,7 @@ jobs:
with:
namespace: snekbox
manifests: deployment.yaml
- images: 'ghcr.io/python-discord/snekbox:${{ inputs.version }}'
+ images: 'ghcr.io/python-discord/snekbox:${{ inputs.version }}-pydis'
# Push the base image to GHCR, with an inline cache manifest.
- name: Push base image