Skip to content

Commit 083dba1

Browse files
committed
Build and use PyDis image when deploying to Kubernetes
1 parent 571f914 commit 083dba1

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/deploy.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,24 @@ jobs:
5555
ghcr.io/python-discord/snekbox-venv:latest
5656
ghcr.io/python-discord/snekbox:latest
5757
cache-to: type=inline
58+
load: true
5859
tags: |
5960
ghcr.io/python-discord/snekbox:latest
6061
ghcr.io/python-discord/snekbox:${{ inputs.version }}
6162
63+
- name: Build PyDis final image
64+
uses: docker/build-push-action@v6
65+
with:
66+
context: .
67+
file: ./Dockerfile.pydis
68+
push: true
69+
cache-from: |
70+
ghcr.io/python-discord/snekbox:latest-pydis
71+
cache-to: type=inline
72+
tags: |
73+
ghcr.io/python-discord/snekbox:latest-pydis
74+
ghcr.io/python-discord/snekbox:${{ inputs.version }}-pydis
75+
6276
# Deploy to Kubernetes.
6377
- name: Install kubectl
6478
uses: azure/setup-kubectl@v4
@@ -74,7 +88,7 @@ jobs:
7488
with:
7589
namespace: snekbox
7690
manifests: deployment.yaml
77-
images: 'ghcr.io/python-discord/snekbox:${{ inputs.version }}'
91+
images: 'ghcr.io/python-discord/snekbox:${{ inputs.version }}-pydis'
7892

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

0 commit comments

Comments
 (0)