Skip to content

Commit

Permalink
Auto commit - CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Dec 17, 2023
1 parent 9f79e6c commit 2bb3b82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions amazon-eks-ami/.github/actions/ci/build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ runs:
- id: build
shell: bash
run: |
packer plugins install github.com/hashicorp/amazon
AMI_NAME="amazon-eks-node-${{ inputs.k8s_version }}-${{ inputs.build_id }}"
make ${{ inputs.k8s_version }} ami_name=${AMI_NAME} ${{ inputs.additional_arguments }}
echo "ami_id=$(jq -r .builds[0].artifact_id "${AMI_NAME}-manifest.json" | cut -d ':' -f 2)" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion amazon-eks-ami/files/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ CA_CERTIFICATE_DIRECTORY=/etc/kubernetes/pki
CA_CERTIFICATE_FILE_PATH=$CA_CERTIFICATE_DIRECTORY/ca.crt
mkdir -p $CA_CERTIFICATE_DIRECTORY
if [[ -z "${B64_CLUSTER_CA}" ]] || [[ -z "${APISERVER_ENDPOINT}" ]]; then
log "INFO: --cluster-ca or --api-server-endpoint is not defined, describing cluster..."
log "INFO: --b64-cluster-ca or --apiserver-endpoint is not defined, describing cluster..."
DESCRIBE_CLUSTER_RESULT="/tmp/describe_cluster_result.txt"

# Retry the DescribeCluster API for API_RETRY_ATTEMPTS
Expand Down
3 changes: 3 additions & 0 deletions amazon-eks-ami/files/get-ecr-uri.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ else
il-central-1)
acct="066635153087"
;;
ca-west-1)
acct="761377655185"
;;
# This sections includes all commercial non-opt-in regions, which use
# the same account for ECR pause container images, but still have in-region
# registries.
Expand Down

0 comments on commit 2bb3b82

Please sign in to comment.