Add git tag task
This commit is contained in:
parent
d10ac65365
commit
0acca02909
1 changed files with 7 additions and 0 deletions
7
tasks.py
7
tasks.py
|
@ -49,3 +49,10 @@ def publish_docker(ctx):
|
||||||
echo=True,
|
echo=True,
|
||||||
)
|
)
|
||||||
ctx.run(f"docker push {docker_image}", pty=True, echo=True)
|
ctx.run(f"docker push {docker_image}", pty=True, echo=True)
|
||||||
|
|
||||||
|
|
||||||
|
@task
|
||||||
|
def tag(ctx, tag_name):
|
||||||
|
with ctx.cd(BASE_DIR):
|
||||||
|
ctx.run(f'git tag {tag_name} -am "{tag_name}"', pty=True, echo=True)
|
||||||
|
ctx.run(f"git push origin {tag_name}", pty=True, echo=True)
|
||||||
|
|
Loading…
Reference in a new issue