From fc2bcb6ca4bd625ac3a5e379186508a24997109b Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Tue, 11 Jun 2024 14:05:56 +0000 Subject: [PATCH] drop disl --- .github/workflows/test.yml | 3 --- test/run | 10 ++++------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aba9204..e669a9d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: diff --git a/test/run b/test/run index 49af57a..daba731 100755 --- a/test/run +++ b/test/run @@ -1,7 +1,5 @@ -#!/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 @@ -9,8 +7,8 @@ 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