Skip to content

Commit

Permalink
Update the tagging to set the latest tag for each image
Browse files Browse the repository at this point in the history
Signed-off-by: William Douglas <[email protected]>
  • Loading branch information
bryteise committed Jan 7, 2025
1 parent 31b61ab commit d7d7323
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build-and-push-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ create_image() {
local name="$1"
local ver="$2"
pushd "${name}"
echo "Creating ${name} for version ${ver}"
docker build -t ghcr.io/clearlinux/"${name}":"${ver}" . --build-arg="clear_ver=${ver}"
echo "Creating ${name} for version ${ver}"
docker build -t ghcr.io/clearlinux/"${name}":latest . --build-arg="clear_ver=${ver}"
popd
}

push_image() {
local name="$1"
local ver="$2"
echo "Pushing ${name} for version ${ver}"
echo "Pushing ${name} for version ${ver}"
docker tag ghcr.io/clearlinux/"${name}":latest ghcr.io/clearlinux/"${name}":"${ver}"
docker push ghcr.io/clearlinux/"${name}":latest
docker push ghcr.io/clearlinux/"${name}":"${ver}"
}

Expand Down

0 comments on commit d7d7323

Please sign in to comment.