Skip to content

Commit

Permalink
update build process and push to new registry
Browse files Browse the repository at this point in the history
oOhyeahh committed Oct 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f166544 commit 176f9b5
Showing 3 changed files with 5 additions and 12 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Docker Publish Release

on:
release:
types: [published, edited]
push:
branches:
- "*"

# Can be triggered manually
workflow_dispatch:
6 changes: 1 addition & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -3,11 +3,7 @@ name: Docker
on:
push:
branches:
- "master"
- "[0-9].[0-9]"
pull_request:
branches:
- "master"
- "*"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
6 changes: 1 addition & 5 deletions scripts/build_docker.py
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ def is_latest_release(release: str) -> bool:


def make_docker_tag(l: list[str]) -> str:
return f"{REPO}:" + "-".join([o for o in l if o])
return f"lemonyeah/superset:" + "-".join([o for o in l if o])


def get_docker_tags(
@@ -189,9 +189,6 @@ def get_docker_command(
platform_arg = "--platform " + ",".join(build_platforms)

cache_from_arg = f"--cache-from=type=registry,ref={cache_ref}"
cache_to_arg = (
f"--cache-to=type=registry,mode=max,ref={cache_ref}" if is_authenticated else ""
)
build_arg = f"--build-arg PY_VER={py_ver}" if py_ver else ""
actor = os.getenv("GITHUB_ACTOR")

@@ -201,7 +198,6 @@ def get_docker_command(
{docker_args} \\
{docker_tags} \\
{cache_from_arg} \\
{cache_to_arg} \\
{build_arg} \\
{platform_arg} \\
{target_argument} \\

0 comments on commit 176f9b5

Please sign in to comment.