Reformat the code

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2023-02-24 21:58:55 +05:30
parent 190ee269d8
commit 6108dc4dd5
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -3,9 +3,27 @@ import os
from requests import get
import ujson
data = ujson.loads(get("https://api.github.com/repos/gohugoio/hugo/releases/latest").content)
data = ujson.loads(
get("https://api.github.com/repos/gohugoio/hugo/releases/latest").content
)
tag = data["tag_name"][1:]
subprocess.run(["docker", "build", ".", "--build-arg", "HUGO_VERSION=" + tag, "-t", "registry.baalajimaestro.me/baalajimaestro/hugo-alpine-ext:latest"])
subprocess.run(["docker", "push", "registry.baalajimaestro.me/baalajimaestro/hugo-alpine-ext:latest"])
subprocess.run(
[
"docker",
"build",
".",
"--build-arg",
"HUGO_VERSION=" + tag,
"-t",
"registry.baalajimaestro.me/baalajimaestro/hugo-alpine-ext:latest",
]
)
subprocess.run(
[
"docker",
"push",
"registry.baalajimaestro.me/baalajimaestro/hugo-alpine-ext:latest",
]
)