Skip to content

Commit

Permalink
set default test tag in the script
Browse files Browse the repository at this point in the history
  • Loading branch information
skudasov committed Sep 11, 2024
1 parent e7fec10 commit 39c41a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/test-package-release.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import subprocess
import argparse

default_tag = "k8s-test-runner/v0.1.0-test-alpha-release"
default_package = "k8s-test-runner"
default_tag = "%s/v0.1.0-test-alpha-release"

def run_command(command):
"""Run a shell command and capture its output."""
Expand Down Expand Up @@ -46,7 +47,8 @@ def push_changes():

def main():
parser = argparse.ArgumentParser(description="Remove a Git tag, add it if necessary, and push changes.")
parser.add_argument("-tag", required=False, default=default_tag, help="The Git tag to remove and re-add.")
parser.add_argument("-tag", required=False, default=default_tag.format(default_package), help="The Git tag to remove and re-add.")
parser.add_argument("-package", required=True, default=default_package, help="The Git tag to remove and re-add.")

args = parser.parse_args()

Expand Down

0 comments on commit 39c41a0

Please sign in to comment.