From c33efa3ce9c3a80c7dd6d3db4b7ec64bef4b88ee Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 1 Oct 2023 19:03:40 +0200 Subject: [PATCH] fix: disable aws integration --- Dockerfile | 1 - rootfs/usr/local/bin/clone | 18 +++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0c057e9..188e79b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,5 @@ FROM docker.io/library/alpine:3.18.4 RUN apk add --no-cache \ - aws-cli \ bash \ ca-certificates \ curl \ diff --git a/rootfs/usr/local/bin/clone b/rootfs/usr/local/bin/clone index d59aa36..d6713dc 100755 --- a/rootfs/usr/local/bin/clone +++ b/rootfs/usr/local/bin/clone @@ -45,17 +45,17 @@ if [[ -n "${DRONE_SSH_KEY}" ]]; then ssh-keyscan -H "${DRONE_NETRC_MACHINE}" > /etc/ssh/ssh_known_hosts 2> /dev/null fi -# AWS codecommit support using AWS access key & secret key -# Refer: https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-unixes.html +# # AWS codecommit support using AWS access key & secret key +# # Refer: https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-unixes.html -if [[ -n "${DRONE_AWS_ACCESS_KEY}" ]]; then - aws configure set aws_access_key_id "${DRONE_AWS_ACCESS_KEY}" - aws configure set aws_secret_access_key "${DRONE_AWS_SECRET_KEY}" - aws configure set default.region "${DRONE_AWS_REGION}" +# if [[ -n "${DRONE_AWS_ACCESS_KEY}" ]]; then +# aws configure set aws_access_key_id "${DRONE_AWS_ACCESS_KEY}" +# aws configure set aws_secret_access_key "${DRONE_AWS_SECRET_KEY}" +# aws configure set default.region "${DRONE_AWS_REGION}" - git config --global credential.helper '!aws codecommit credential-helper $@' - git config --global credential.UseHttpPath true -fi +# git config --global credential.helper '!aws codecommit credential-helper $@' +# git config --global credential.UseHttpPath true +# fi # configure git global behavior and parameters via the # following environment variables: