This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Sync dockerhub images to ghcr.io or other registry | |
Usage: | |
1. create tag list file `tags.txt` that syncing to ghcr.io | |
``` | |
git tag > tags.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ $repo := .Get "repo" }} | |
{{ $detail := getJSON "https://api.github.com/repos/" $repo }} | |
<article class="shortcode-card"> | |
<a href="https://github.com/{{ $repo }}" target="_blank" rel="noopener"> | |
<header> | |
<img alt="{{ $repo }}" src="https://opengraph.githubassets.com/1/{{ $repo }}" /> | |
</header> | |
<div class="shortcode-card-content"> | |
<h2>{{ .Get "repo" }}</h2> | |
{{ with $detail }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import pyvips | |
options = { | |
'Q': 75, | |
'quant_table': 3, | |
'interlace': True, | |
'strip': True, | |
'optimize_coding': True, |
OlderNewer