From 60d7224bf74cdc04376ac9f3708ec6a55761ab52 Mon Sep 17 00:00:00 2001 From: Eric Mastro Date: Fri, 28 Apr 2023 16:03:59 +1000 Subject: [PATCH] Add image to CI, and update startCodex.sh --- .github/workflows/docker.yml | 12 ++++++++++++ docker/README.md | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index ad31c3c6..ecfdf372 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -123,3 +123,15 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + # Slim it! + - name: Minify docker image + uses: kitabisa/docker-slim-action@v1 + env: + DSLIM_HTTP_PROBE: false + with: + target: ${{ steps.meta.outputs.labels }} + tag: ${{ steps.meta.outputs.tags }} + # Push to the docker registry + - name: Push image to docker registry + run: docker image push "${{ steps.meta.outputs.labels }}:${{ steps.meta.outputs.tags }}" + if: github.event_name != 'pull_request' diff --git a/docker/README.md b/docker/README.md index 603c6e39..3c1c9139 100644 --- a/docker/README.md +++ b/docker/README.md @@ -61,4 +61,4 @@ slim # brings up interactive prompt >>> build --target status-im/codexsetup --http-probe-off true ``` 3. This should output an image with name `status-im/codexsetup.slim` -4. We can then bring up the image using `docker-compose up -d`. \ No newline at end of file +4. We can then bring up the image using `docker-compose up -d`.