Skip to content

Commit

Permalink
remove rapidsai/ci references
Browse files Browse the repository at this point in the history
  • Loading branch information
AyodeAwe committed Sep 22, 2023
1 parent 6dfb89f commit f167764
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 58 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ jobs:
LINUX_VER: ${{ inputs.LINUX_VER }}
PYTHON_VER: ${{ inputs.PYTHON_VER }}
ARCH: ${{ matrix.ARCH }}
- name: Generate Additional Tag
id: generate-additional-tag
run: ci/generate-tags.sh
env:
CURRENT_TAG: ${{ inputs.IMAGE_NAME }}-${{ matrix.ARCH }}
- name: Build image
uses: docker/build-push-action@v4
with:
Expand All @@ -71,4 +66,4 @@ jobs:
pull: true
build-args: |
${{ steps.generate-build-args.outputs.ARGS }}
tags: ${{ steps.generate-additional-tag.outputs.TAG }}
tags: ${{ inputs.IMAGE_NAME }}-${{ matrix.ARCH }}
26 changes: 0 additions & 26 deletions ci/create-multiarch-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,3 @@ if [[
echo "Skipping 'latest' manifest creation for PR workflow."
fi
fi

# publish rapidsai/ci manifests too
if [[ $IMAGE_NAME =~ ci-conda ]]; then
IMAGE_NAME=$(echo "$IMAGE_NAME" | sed 's/ci-conda/ci/')
source_tags=()
tag="${IMAGE_NAME}"
for arch in $(echo "${ARCHES}" | jq .[] -r); do
source_tags+=("${tag}-${arch}")
done

docker manifest create "${tag}" "${source_tags[@]}"
docker manifest push "${tag}"
if [[
"${LATEST_UBUNTU_VER}" == "${LINUX_VER}" &&
"${LATEST_CUDA_VER}" == "${CUDA_VER}" &&
"${LATEST_PYTHON_VER}" == "${PYTHON_VER}"
]]; then
# only create a 'latest' manifest if it is a non-PR workflow.
if [[ "${BUILD_TYPE}" != "pull-request" ]]; then
docker manifest create "rapidsai/ci:latest" "${source_tags[@]}"
docker manifest push "rapidsai/ci:latest"
else
echo "Skipping 'latest' manifest creation for PR workflow."
fi
fi
fi
12 changes: 0 additions & 12 deletions ci/generate-tags.sh

This file was deleted.

14 changes: 0 additions & 14 deletions ci/remove-temp-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,3 @@ for arch in $(echo "$ARCHES" | jq .[] -r); do
-H "Authorization: JWT $HUB_TOKEN" \
"https://hub.docker.com/v2/repositories/$full_repo_name/tags/$tag-$arch/"
done

# delete rapidsai/ci imgs too
if [[ $IMAGE_NAME =~ ci-conda ]]; then
IMAGE_NAME=$(echo "$IMAGE_NAME" | sed 's/ci-conda/ci/')
full_repo_name=${IMAGE_NAME%%:*}
tag=${IMAGE_NAME##*:}

for arch in $(echo "$ARCHES" | jq .[] -r); do
curl --fail-with-body -i -X DELETE \
-H "Accept: application/json" \
-H "Authorization: JWT $HUB_TOKEN" \
"https://hub.docker.com/v2/repositories/$full_repo_name/tags/$tag-$arch/"
done
fi

0 comments on commit f167764

Please sign in to comment.