Script te docker tagging

This commit is contained in:
Derry Hamilton 2023-07-11 13:21:04 +01:00
parent 584f83de0d
commit b81aedefb1
2 changed files with 5 additions and 0 deletions

View file

@ -1,2 +1,3 @@
#!/bin/bash #!/bin/bash
docker build --target deploy -t rasilon/ujetl docker/multistage docker build --target deploy -t rasilon/ujetl docker/multistage
docker tag rasilon/ujetl:latest rasilon/ujetl:$(xpath -q -e '/project/version/text()' pom.xml)

View file

@ -0,0 +1,4 @@
#!/bin/bash
docker push rasilon/ujetl:latest
docker push rasilon/ujetl:$(xpath -q -e '/project/version/text()' pom.xml)