Skip to content

Commit

Permalink
disable missed dockerhub commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Gorban authored and Ilya Gorban committed Oct 7, 2021
1 parent 6850a7f commit 634509d
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,14 @@ jobs:
tag_suffix=$(echo $PLATFORM | sed -r "s/\//-/g")
image_name="${DOCKERIO_ORG}/${TARGET}:${tag}-${tag_suffix}"
docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \
--cache-to "type=local,dest=/tmp/.buildx-cache" \
--output "type=image,push=true" \
--platform="${PLATFORM}" \
--target $TARGET \
--tag $image_name .
## Codefresh - remove dockerhub
# docker buildx build \
# --cache-from "type=local,src=/tmp/.buildx-cache" \
# --cache-to "type=local,dest=/tmp/.buildx-cache" \
# --output "type=image,push=true" \
# --platform="${PLATFORM}" \
# --target $TARGET \
# --tag $image_name .
docker buildx build \
--cache-from "type=local,src=/tmp/.buildx-cache" \
Expand Down Expand Up @@ -230,7 +231,8 @@ jobs:
for target in $targets; do
image_name="${docker_org}/${target}:${tag}"
docker manifest create $image_name ${image_name}-linux-amd64
## Codefresh - remove dockerhub
# docker manifest create $image_name ${image_name}-linux-amd64
docker manifest create quay.io/$image_name quay.io/${image_name}-linux-amd64
## Codefresh - remove dockerhub
Expand Down Expand Up @@ -276,10 +278,12 @@ jobs:
image_name="${docker_org}/${target}:${tag}"
if [ $target = "argoexec" ]; then
docker manifest create $image_name ${image_name}-linux-arm64 ${image_name}-linux-amd64 ${image_name}-windows
## Codefresh - remove dockerhub
# docker manifest create $image_name ${image_name}-linux-arm64 ${image_name}-linux-amd64 ${image_name}-windows
docker manifest create quay.io/$image_name quay.io/${image_name}-linux-arm64 quay.io/${image_name}-linux-amd64 quay.io/${image_name}-windows
else
docker manifest create $image_name ${image_name}-linux-arm64 ${image_name}-linux-amd64
## Codefresh - remove dockerhub
# docker manifest create $image_name ${image_name}-linux-arm64 ${image_name}-linux-amd64
docker manifest create quay.io/$image_name quay.io/${image_name}-linux-arm64 quay.io/${image_name}-linux-amd64
fi
Expand Down

0 comments on commit 634509d

Please sign in to comment.