From 0e27605856bb0b94d0bb342f3575df9ad337962b Mon Sep 17 00:00:00 2001 From: Josh Sandlin Date: Thu, 30 Jul 2026 18:41:18 -0400 Subject: [PATCH] add smoke test back, too --- .github/workflows/deploy.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 922766f..f0e6c8f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -101,22 +101,23 @@ jobs: runs-on: ubuntu-latest needs: deploy steps: - - name: Test push and pull + - name: Test push, pull, and expiry run: | - IMAGE="ttl.sh/smoke-${{ github.sha }}:5m" - echo "๐Ÿงช Testing with image: $IMAGE" - - # Use busybox - tiny image (~1MB) + IMAGE="ttl.sh/smoke-${{ github.sha }}:1m" + docker pull busybox:latest docker tag busybox:latest "$IMAGE" - - echo "๐Ÿ“ค Pushing image..." docker push "$IMAGE" - - # Remove local copy to force pull from registry - docker rmi "$IMAGE" - - echo "๐Ÿ“ฅ Pulling image back..." + + docker rmi "$IMAGE" busybox:latest docker pull "$IMAGE" - - echo "โœ… Push/pull test passed!" + echo "โœ… Push/pull passed" + + docker rmi "$IMAGE" + sleep 90 + + if docker pull "$IMAGE"; then + echo "โŒ image still pullable after TTL" + exit 1 + fi + echo "โœ… Image expired as expected"