mirror of
https://github.com/replicatedhq/ttl.sh.git
synced 2026-02-14 16:59:51 +00:00
Remove TTL expiry verification from smoke test
Reaper runs on interval, so TTL expiry timing is non-deterministic. Keep just the push/pull validation for now. Signed-off-by: Marc Campbell <marc.e.campbell@gmail.com>
This commit is contained in:
23
.github/workflows/deploy.yml
vendored
23
.github/workflows/deploy.yml
vendored
@@ -90,7 +90,7 @@ jobs:
|
||||
playbooks/site.yml
|
||||
|
||||
smoke-test:
|
||||
name: Smoke Test (Push/Pull/TTL)
|
||||
name: Smoke Test
|
||||
runs-on: ubuntu-latest
|
||||
needs: deploy
|
||||
steps:
|
||||
@@ -113,24 +113,3 @@ jobs:
|
||||
docker pull "$IMAGE"
|
||||
|
||||
echo "✅ Push/pull test passed!"
|
||||
|
||||
- name: Wait for TTL expiry
|
||||
run: |
|
||||
echo "⏳ Waiting 7 minutes for 5m TTL to expire..."
|
||||
sleep 420
|
||||
|
||||
- name: Verify image expired
|
||||
run: |
|
||||
IMAGE="ttl.sh/smoke-${{ github.sha }}:5m"
|
||||
echo "🔍 Verifying image has expired..."
|
||||
|
||||
# Remove local copy if cached
|
||||
docker rmi "$IMAGE" 2>/dev/null || true
|
||||
|
||||
# Try to pull - should fail
|
||||
if docker pull "$IMAGE" 2>&1; then
|
||||
echo "❌ ERROR: Image still exists after TTL expiry!"
|
||||
exit 1
|
||||
else
|
||||
echo "✅ Image correctly expired and unavailable!"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user