aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-11-17 01:06:33 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2020-11-17 01:06:33 +0100
commit10f06322c0b3483101810eb2b30e2c9cb7b8e18a (patch)
tree0a4fced54cd54cee689f6487354ff3690aae6298
parentAdd Python and coveralls to workflow (diff)
Build final image and push to GHCR
-rw-r--r--.github/workflows/lint-test.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml
index ecb5834..7aa8f32 100644
--- a/.github/workflows/lint-test.yaml
+++ b/.github/workflows/lint-test.yaml
@@ -90,3 +90,20 @@ jobs:
run: |
pip install coveralls~=2.1
coveralls
+
+ - name: Build final image
+ run: "docker build \
+ -f docker/Dockerfile \
+ -t ghcr.io/python-discord/snekbox:latest \
+ --cache-from ghcr.io/python-discord/snekbox:latest \
+ --build-arg BUILDKIT_INLINE_CACHE=1 \
+ ."
+
+ - name: Push base image
+ run: docker push ghcr.io/python-discord/snekbox-base:latest
+
+ - name: Push venv image
+ run: docker push ghcr.io/python-discord/snekbox-venv:latest
+
+ - name: Push final image
+ run: docker push ghcr.io/python-discord/snekbox:latest