Skip to content

Instantly share code, notes, and snippets.

View akunzai's full-sized avatar

Charley Wu akunzai

  • Taipei,Taiwan
  • 14:10 (UTC +08:00)
  • X @akunzai
View GitHub Profile
@akunzai
akunzai / gitlab-artifacts-cleanup.py
Last active May 2, 2023 10:40 — forked from Pingu501/gitlab-artifacts-cleanup.py
GitLab Artifacts Clean-Up
#! /usr/bin/env python3
# encoding: utf-8
"""
This is a small python script to clear up old gitlab build artifacts.
"""
import argparse
import datetime
import functools
import json
#!/bin/bash
################################################################################
# FUNCTIONS
################################################################################
# 1. Check required system tools
_check_installed_tools() {
local missed=""