Fixing things
This commit is contained in:
parent
657debfc8d
commit
6bec77f925
16
PterodactylImages/Minecraft-Paper/auto-builder.sh
Normal file → Executable file
16
PterodactylImages/Minecraft-Paper/auto-builder.sh
Normal file → Executable file
|
@ -7,7 +7,7 @@ DOCKERHUB_USERNAME="vetheon"
|
||||||
JAVA_VERSIONS=("8" "11" "16" "17" "18" "19" "20" "21" "22")
|
JAVA_VERSIONS=("8" "11" "16" "17" "18" "19" "20" "21" "22")
|
||||||
|
|
||||||
# Base path to Dockerfiles
|
# Base path to Dockerfiles
|
||||||
BASE_PATH="./DockerImages/PterodactylImages/Minecraft-Paper/Ridged-Java"
|
BASE_PATH="./Ridged-Java"
|
||||||
|
|
||||||
# Loop through each Java version, build, tag, and push the Docker images
|
# Loop through each Java version, build, tag, and push the Docker images
|
||||||
for VERSION in "${JAVA_VERSIONS[@]}"; do
|
for VERSION in "${JAVA_VERSIONS[@]}"; do
|
||||||
|
@ -15,12 +15,16 @@ for VERSION in "${JAVA_VERSIONS[@]}"; do
|
||||||
DOCKERFILE_PATH="${BASE_PATH}/${VERSION}/Dockerfile"
|
DOCKERFILE_PATH="${BASE_PATH}/${VERSION}/Dockerfile"
|
||||||
|
|
||||||
# Build the Docker image
|
# Build the Docker image
|
||||||
echo "Building Docker image for Java ${VERSION}..."
|
if [ -f "${DOCKERFILE_PATH}" ]; then
|
||||||
docker build -t "${IMAGE_NAME}" -f "${DOCKERFILE_PATH}" .
|
echo "Building Docker image for Java ${VERSION}..."
|
||||||
|
docker build -t "${IMAGE_NAME}" -f "${DOCKERFILE_PATH}" .
|
||||||
|
|
||||||
# Push the Docker image to DockerHub
|
# Push the Docker image to DockerHub
|
||||||
echo "Pushing Docker image for Java ${VERSION} to DockerHub..."
|
echo "Pushing Docker image for Java ${VERSION} to DockerHub..."
|
||||||
docker push "${IMAGE_NAME}"
|
docker push "${IMAGE_NAME}"
|
||||||
|
else
|
||||||
|
echo "Dockerfile for Java ${VERSION} not found at ${DOCKERFILE_PATH}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "All images have been built and pushed successfully."
|
echo "All images have been built and pushed successfully."
|
||||||
|
|
0
PterodactylImages/Minecraft-Paper/entrypoint.sh
Normal file → Executable file
0
PterodactylImages/Minecraft-Paper/entrypoint.sh
Normal file → Executable file
Loading…
Reference in New Issue
Block a user