Skip to content

Commit

Permalink
Dont create all tags for every arch
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroslav-fedor-swi committed Oct 16, 2024
1 parent 5c19f99 commit da52975
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,14 @@ jobs:
image_path="${docker_registry}/${DOCKER_NAMESPACE}/${image_name}"
for arch in ${architectures[@]}; do
for tag in ${tags[@]}; do
image_with_arch="${image}-${arch}"
docker tag $image_with_arch ${image_path}:${tag}-${arch}
if [[ "${{ inputs.dry_run }}" == "false" ]];
then
docker push ${image_path}:${tag}
else
echo "Would run: docker push ${image_path}:${tag}"
fi
done
docker tag "${image}-${arch}" ${image_path}:v${full_version_number}-${arch}
if [[ "${{ inputs.dry_run }}" == "false" ]];
then
docker push ${image_path}:${tag}
else
echo "Would run: docker push ${image_path}:${tag}"
fi
done
for tag in ${tags[@]}; do
Expand Down

0 comments on commit da52975

Please sign in to comment.