Skip to content

Commit

Permalink
fix template
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Stokes <51892+adam-stokes@users.noreply.github.com>
  • Loading branch information
adam-stokes committed Oct 7, 2020
1 parent 35fd2fd commit 054f7be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions jobs/build-debs/build-debs.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ def make_debs(self, sign_key, include_source):

if include_source:
cmd_ok(
f"dpkg-buildpackage -S --sign-key={sign_key}", cwd="k8s-internal-mirror"
f"dpkg-buildpackage -S --sign-key={sign_key}",
cwd="k8s-internal-mirror",
)
else:
cmd_ok(
f"dpkg-buildpackage -S --sign-key={sign_key} -sd", cwd="k8s-internal-mirror"
f"dpkg-buildpackage -S --sign-key={sign_key} -sd",
cwd="k8s-internal-mirror",
)
cmd_ok(f"rm -rf debian", cwd="k8s-internal-mirror")

Expand Down Expand Up @@ -114,7 +116,9 @@ def sync_tags():
@click.option("--version", help="Kubernetes tag to build", required=True)
@click.option("--git-user", help="Git repo user", default="k8s-team-ci")
@click.option("--sign-key", help="GPG Sign key ID", required=True)
@click.option("--include-source", help="Include orig.tar.gz source in builds", is_flag=True)
@click.option(
"--include-source", help="Include orig.tar.gz source in builds", is_flag=True
)
def build_debs(version, git_user, sign_key, include_source):
_fmt_rel = version.lstrip("v")
parsed_version = version
Expand Down
2 changes: 1 addition & 1 deletion jobs/build-debs/run.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ fi

cd /root/jenkins
pip3 install -rjobs/build-debs/requirements.txt
PYTHONPATH=. python3 jobs/build-debs/build-debs.py build-debs "$OPTS"
PYTHONPATH=. python3 jobs/build-debs/build-debs.py build-debs $OPTS

0 comments on commit 054f7be

Please sign in to comment.