Reformat the code
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
190ee269d8
commit
6108dc4dd5
1 changed files with 21 additions and 3 deletions
24
build.py
24
build.py
|
@ -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",
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue