Skip to content

Commit 4e85ef4

Browse files
committed
purge - audit file
1 parent b9dc7c5 commit 4e85ef4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/purge/purge_nighlties.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import argparse
2+
import os
23
from datetime import datetime, timezone, timedelta
34

45
import requests
@@ -16,6 +17,13 @@
1617
GITHUB_PACKAGE = "vector"
1718
GITHUB_API = f"https://api.github.com/orgs/{GITHUB_ORG}/packages/container/{GITHUB_PACKAGE}/versions"
1819

20+
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
21+
OUTPUT_DIR = os.path.abspath(os.path.join(SCRIPT_DIR, "../../out/purge"))
22+
os.makedirs(OUTPUT_DIR, exist_ok=True)
23+
24+
GITHUB_AUDIT_FILE = os.path.join(OUTPUT_DIR, "nightly_github.jsonl")
25+
DOCKERHUB_AUDIT_FILE = os.path.join(OUTPUT_DIR, "nightly_dockerhub.jsonl")
26+
1927

2028
# ----------------------------
2129
# Helpers

0 commit comments

Comments
 (0)