Skip to content

Commit

Permalink
fix: uncommented shell commands
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Peterson <[email protected]>
  • Loading branch information
mattp-swirldslabs committed Dec 19, 2024
1 parent 63fd95c commit 67c79a0
Showing 1 changed file with 53 additions and 53 deletions.
106 changes: 53 additions & 53 deletions .github/workflows/support/scripts/generate-docker-artifact-baseline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,59 +62,59 @@ start_group "Configuring Environment"
trap 'rm -rf "${TEMP_DIR}"' EXIT
end_task "DONE (Path: ${TEMP_DIR})"

# start_task "Resolving the GITHUB_WORKSPACE path"
# # Ensure GITHUB_WORKSPACE is provided or default to the repository root
# if [[ -z "${GITHUB_WORKSPACE}" || ! -d "${GITHUB_WORKSPACE}" ]]; then
# GITHUB_WORKSPACE="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../../" && pwd)"
# fi
# end_task "DONE (Path: ${GITHUB_WORKSPACE})"
#
# start_task "Resolving the GITHUB_OUTPUT path"
# # Ensure GITHUB_OUTPUT is provided or default to the repository root
# if [[ -z "${GITHUB_OUTPUT}" ]]; then
# GITHUB_OUTPUT="${TEMP_DIR}/workflow-output.txt"
# fi
# end_task "DONE (Path: ${GITHUB_OUTPUT})"
#
# start_task "Resolving the GITHUB_SHA hash"
# if [[ -z "${GITHUB_SHA}" ]]; then
# GITHUB_SHA="$(git rev-parse HEAD | tr -d '[:space:]')" || fail "ERROR (Exit Code: ${?})" "${?}"
# fi
# end_task "DONE (Commit: ${GITHUB_SHA})"
#
# start_task "Resolving the MANIFEST_PATH variable"
# if [[ -z "${MANIFEST_PATH}" ]]; then
# MANIFEST_PATH="${GITHUB_WORKSPACE}/.manifests/gradle"
# fi
# end_task "DONE (Path: ${MANIFEST_PATH})"
#
# start_task "Ensuring the MANIFEST_PATH location is present"
# if [[ ! -d "${MANIFEST_PATH}" ]]; then
# mkdir -p "${MANIFEST_PATH}" || fail "ERROR (Exit Code: ${?})" "${?}"
# fi
# end_task
#
# start_task "Resolving the SKOPEO_VERSION variable"
# if [[ -z "${SKOPEO_VERSION}" ]]; then
# SKOPEO_VERSION="v1.14.0"
# fi
# end_task "DONE (Version: ${SKOPEO_VERSION})"
#
# start_task "Resolving the SKOPEO_IMAGE_NAME variable"
# if [[ -z "${SKOPEO_IMAGE_NAME}" ]]; then
# SKOPEO_IMAGE_NAME="quay.io/skopeo/stable:${SKOPEO_VERSION}"
# fi
# end_task "DONE (Image Name: ${SKOPEO_IMAGE_NAME})"
#
# start_task "Checking for the DOCKER command"
# if command -v docker >/dev/null 2>&1; then
# DOCKER="$(command -v docker)" || fail "ERROR (Exit Code: ${?})" "${?}"
# export DOCKER
# else
# fail "ERROR (Exit Code: ${?})" "${?}"
# fi
# end_task "DONE (Found: ${DOCKER})"
#
start_task "Resolving the GITHUB_WORKSPACE path"
# Ensure GITHUB_WORKSPACE is provided or default to the repository root
if [[ -z "${GITHUB_WORKSPACE}" || ! -d "${GITHUB_WORKSPACE}" ]]; then
GITHUB_WORKSPACE="$(cd "$(dirname "${BASH_SOURCE[0]}")/../../../../" && pwd)"
fi
end_task "DONE (Path: ${GITHUB_WORKSPACE})"

start_task "Resolving the GITHUB_OUTPUT path"
# Ensure GITHUB_OUTPUT is provided or default to the repository root
if [[ -z "${GITHUB_OUTPUT}" ]]; then
GITHUB_OUTPUT="${TEMP_DIR}/workflow-output.txt"
fi
end_task "DONE (Path: ${GITHUB_OUTPUT})"

start_task "Resolving the GITHUB_SHA hash"
if [[ -z "${GITHUB_SHA}" ]]; then
GITHUB_SHA="$(git rev-parse HEAD | tr -d '[:space:]')" || fail "ERROR (Exit Code: ${?})" "${?}"
fi
end_task "DONE (Commit: ${GITHUB_SHA})"

start_task "Resolving the MANIFEST_PATH variable"
if [[ -z "${MANIFEST_PATH}" ]]; then
MANIFEST_PATH="${GITHUB_WORKSPACE}/.manifests/gradle"
fi
end_task "DONE (Path: ${MANIFEST_PATH})"

start_task "Ensuring the MANIFEST_PATH location is present"
if [[ ! -d "${MANIFEST_PATH}" ]]; then
mkdir -p "${MANIFEST_PATH}" || fail "ERROR (Exit Code: ${?})" "${?}"
fi
end_task

start_task "Resolving the SKOPEO_VERSION variable"
if [[ -z "${SKOPEO_VERSION}" ]]; then
SKOPEO_VERSION="v1.14.0"
fi
end_task "DONE (Version: ${SKOPEO_VERSION})"

start_task "Resolving the SKOPEO_IMAGE_NAME variable"
if [[ -z "${SKOPEO_IMAGE_NAME}" ]]; then
SKOPEO_IMAGE_NAME="quay.io/skopeo/stable:${SKOPEO_VERSION}"
fi
end_task "DONE (Image Name: ${SKOPEO_IMAGE_NAME})"

start_task "Checking for the DOCKER command"
if command -v docker >/dev/null 2>&1; then
DOCKER="$(command -v docker)" || fail "ERROR (Exit Code: ${?})" "${?}"
export DOCKER
else
fail "ERROR (Exit Code: ${?})" "${?}"
fi
end_task "DONE (Found: ${DOCKER})"

# start_task "Resolving the Docker Client Configuration"
# SKOPEO_BIND_MOUNT=""
# SKOPEO_CREDENTIAL_OPTS=""
Expand Down

0 comments on commit 67c79a0

Please sign in to comment.