Skip to content

Commit

Permalink
drop disl
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jun 11, 2024
1 parent 0131369 commit fc2bcb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- uses: actions/setup-python@v5
with: {python-version: '3.x'}
- run: pip install docker-image-size-limit
- name: docker build
uses: docker/build-push-action@v5
with:
Expand Down
10 changes: 4 additions & 6 deletions test/run
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
#!/bin/sh

set -o errexit
set -o xtrace
#!/usr/bin/env bash
set -exuo pipefail

# test a docker process
docker ps | grep -q caddy-gen

# test availability and status code
curl 127.0.0.1:80

# test image size (see wemake-services/docker-image-size-limit)
disl caddy-gen:latest 100MB
# test image size < 100MB
(( $(docker inspect caddy-gen:latest -f '{{.Size}}') < 100 * 2**20 ))

# test feature CADDY_TEMPLATE
printf 'http://test-template.localhost {\n respond "template"\n}\n' > template.tmpl
Expand Down

0 comments on commit fc2bcb6

Please sign in to comment.