Skip to content

Commit 8cb46da

Browse files
authored
Merge pull request #190 from CircleCI-Public/brentmmarks-patch-1
update image versions fixes #188
2 parents 256a96f + c5a792e commit 8cb46da

File tree

3 files changed

+21
-38
lines changed

3 files changed

+21
-38
lines changed

.circleci/test-deploy.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
aws --version
8484
aws ec2 describe-images --profile << parameters.profile_name >> \
8585
--owners amazon \
86-
--filters "Name=platform,Values=windows" "Name=root-device-type,Values=ebs"
86+
--filters "Name=platform,Values=windows" "Name=root-device-type,Values=ebs"
8787
integration-test-role-arn-setup:
8888
executor: docker-base
8989
parameters:
@@ -131,7 +131,7 @@ workflows:
131131
- run:
132132
name: Checking ~/.aws/config for profile region
133133
command: |
134-
if grep "\[profile OIDC-User\]" ~/.aws/config && grep "us-west-2" ~/.aws/config;then
134+
if grep "\[profile OIDC-User\]" ~/.aws/config && grep "us-west-2" ~/.aws/config;then
135135
echo "Profile region properly configured"
136136
exit 0
137137
else
@@ -150,7 +150,7 @@ workflows:
150150
- run:
151151
name: Checking ~/.aws/config for default region
152152
command: |
153-
if grep "\[default\]" ~/.aws/config && grep "us-west-1" ~/.aws/config;then
153+
if grep "\[default\]" ~/.aws/config && grep "us-west-1" ~/.aws/config;then
154154
echo "Default region properly configured"
155155
exit 0
156156
else
@@ -219,11 +219,11 @@ workflows:
219219
alias: test-install-version
220220
parameters:
221221
executor: ["docker-base", "macos", "alpine", "docker-nounset-shell" ]
222-
version: "2.1.10"
222+
version: "2.13.25"
223223
filters: *filters
224224
post-steps:
225225
- check_aws_version:
226-
version: "2.1.10"
226+
version: "2.13.25"
227227
# Test overriding existing version of AWS pre-installed
228228
- integration-test-install:
229229
name: integration-test-install-override-version-<<matrix.executor>>
@@ -232,14 +232,14 @@ workflows:
232232
alias: test-install-override-version
233233
parameters:
234234
executor: ["linuxvm", "windows", "arm"]
235-
version: "2.1.10"
235+
version: "2.13.25"
236236
install_dir: "/usr/local/aws-cli"
237237
binary_dir: ""
238238
override_installed: false
239239
filters: *filters
240240
post-steps:
241241
- check_aws_version:
242-
version: "2.1.10"
242+
version: "2.13.25"
243243
- integration-test-install:
244244
name: integration-test-skip-install-matched-version
245245
context: [CPE_ORBS_AWS]
@@ -301,14 +301,14 @@ executors:
301301
xcode: 14.2.0
302302
arm:
303303
machine:
304-
image: ubuntu-2004:202101-01
304+
image: ubuntu-2004:current
305305
resource_class: arm.medium
306306
linuxvm:
307307
machine:
308-
image: ubuntu-2004:202101-01
308+
image: ubuntu-2004:current
309309
windows:
310310
machine:
311-
image: windows-server-2019-vs2019:2023.04.1
311+
image: windows-server-2019-vs2019:current
312312
shell: bash.exe
313313
resource_class: windows.medium
314314
commands:

src/scripts/linux/install.sh

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,21 @@
11
#!/bin/sh
22
#shellcheck disable=SC1090
33
Install_AWS_CLI() {
4-
if [ "$1" = "latest" ]; then
5-
version=""
6-
else
7-
version="-$1"
8-
fi
9-
104
echo "Installing AWS CLI v2"
115
cd /tmp || exit
126
if [ "$SYS_ENV_PLATFORM" = "linux_alpine" ]; then
137
apk update && apk upgrade && apk add -U curl
14-
apk --no-cache add binutils
8+
apk --no-cache add binutils
159
apk --no-cache add libcurl
1610
apk --no-cache upgrade libcurl
17-
curl -L https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub -o /etc/apk/keys/sgerrand.rsa.pub
18-
curl -LO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.34-r0/glibc-2.34-r0.apk
19-
curl -LO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.34-r0/glibc-bin-2.34-r0.apk
20-
curl -LO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.34-r0/glibc-i18n-2.34-r0.apk
21-
22-
apk add --force-overwrite --no-cache \
23-
glibc-2.34-r0.apk \
24-
glibc-bin-2.34-r0.apk \
25-
glibc-i18n-2.34-r0.apk
26-
27-
/usr/glibc-compat/bin/localedef -i en_US -f UTF-8 en_US.UTF-8
28-
curl -sSL "https://awscli.amazonaws.com/awscli-exe-linux-x86_64$version.zip" -o "awscliv2.zip"
29-
30-
echo "https://awscli.amazonaws.com/awscli-exe-linux-x86_64$version.zip"
31-
unzip awscliv2.zip
32-
aws/install
33-
rm -r awscliv2.zip ./aws
11+
apk --no-cache add aws-cli
3412
else
13+
if [ "$1" = "latest" ]; then
14+
version=""
15+
else
16+
version="-$1"
17+
fi
18+
3519
PLATFORM=$(uname -m)
3620
curl -sSL "https://awscli.amazonaws.com/awscli-exe-linux-$PLATFORM$version.zip" -o "awscliv2.zip"
3721
unzip -q -o awscliv2.zip

src/scripts/windows/install.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ Install_AWS_CLI(){
88
fi
99
echo "Installing AWS CLI v2"
1010
cd /tmp || exit
11-
11+
1212
if ! command -v choco >/dev/null 2>&1; then
1313
echo "Chocolatey is required to install AWS"
1414
exit 1
1515
fi
16-
17-
choco install awscli --version="$version"
16+
yes "Yes" | choco install -y awscli --version="$version"
1817
echo "Installing AWS CLI version $version"
1918
if echo "$1" | grep -e "^2\." -e "latest"; then
2019
echo "export PATH=\"\${PATH}:/c/Program Files/Amazon/AWSCLIV2\"" >> "$BASH_ENV"
@@ -28,5 +27,5 @@ Uninstall_AWS_CLI() {
2827
echo "Chocolatey is required to uninstall AWS"
2928
exit 1
3029
fi
31-
choco uninstall awscli
30+
choco uninstall awscli
3231
}

0 commit comments

Comments
 (0)