Skip to content

Commit

Permalink
update docker build script to push all tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
BerndKue committed May 8, 2024
1 parent 470bb40 commit ef29cd9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dockerbuild.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
$version = get-date -Format yyyyMMddHHmmss
$image = "redfish-exporter"

$version = get-date -Format yyyyMMddHHmmss

docker login keppel.eu-de-1.cloud.sap
docker build . -t keppel.eu-de-1.cloud.sap/ccloud/${image}:$version
docker push keppel.eu-de-1.cloud.sap/ccloud/${image}:$version
docker image tag keppel.eu-de-1.cloud.sap/ccloud/${image}:$version keppel.eu-de-1.cloud.sap/ccloud/${image}:latest
docker push keppel.eu-de-1.cloud.sap/ccloud/${image} --all-tags

0 comments on commit ef29cd9

Please sign in to comment.