aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-11-20 16:53:00 +0100
committerGravatar GitHub <[email protected]>2020-11-20 16:53:00 +0100
commit07ad97786f94cad0937a2db0929ca80f13f449d0 (patch)
tree2820c730c6d53bc0d95a52f4399a7b66404d5c36
parentUpdate workflow status badges in readme (diff)
Add inline cache manifest to docker image
We need to attach an inline cache manifest to the image we build and push to the GHCR to be able to use the registry as a cache source for subsequent builds. I've added it to the build workflow configuration.configuration.
-rw-r--r--.github/workflows/build.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index 404e66f7..f133ba24 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -45,6 +45,7 @@ jobs:
file: ./Dockerfile
push: true
cache-from: type=registry,ref=ghcr.io/python-discord/seasonalbot:latest
+ cache-to: type=inline
tags: |
ghcr.io/python-discord/seasonalbot:latest
ghcr.io/python-discord/seasonalbot:${{ steps.sha_tag.outputs.tag }}