Skip to content

Commit fda4014

Browse files
committed
Build and use PyDis image when deploying to Kubernetes
1 parent 008336f commit fda4014

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,19 @@ jobs:
5959
ghcr.io/python-discord/snekbox:latest
6060
ghcr.io/python-discord/snekbox:${{ inputs.version }}
6161
62+
- name: Build PyDis final image
63+
uses: docker/build-push-action@v6
64+
with:
65+
context: .
66+
file: ./Dockerfile.pydis
67+
push: true
68+
cache-from: |
69+
ghcr.io/python-discord/snekbox:latest-pydis
70+
cache-to: type=inline
71+
tags: |
72+
ghcr.io/python-discord/snekbox:latest-pydis
73+
ghcr.io/python-discord/snekbox:${{ inputs.version }}-pydis
74+
6275
# Deploy to Kubernetes.
6376
- name: Install kubectl
6477
uses: azure/setup-kubectl@v4
@@ -74,7 +87,7 @@ jobs:
7487
with:
7588
namespace: snekbox
7689
manifests: deployment.yaml
77-
images: 'ghcr.io/python-discord/snekbox:${{ inputs.version }}'
90+
images: 'ghcr.io/python-discord/snekbox:${{ inputs.version }}-pydis'
7891

7992
# Push the base image to GHCR, with an inline cache manifest.
8093
- name: Push base image

0 commit comments

Comments
 (0)