From e1a457473fbb969f515af79eb0455d9eee37f434 Mon Sep 17 00:00:00 2001 From: Sutton <suttonsp@147dda3a90de.ant.amazon.com> Date: Wed, 3 Feb 2021 10:14:01 -0600 Subject: [PATCH] ubuntu expired key fix --- provider/notification-aws/build-aws/buildspec.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/provider/notification-aws/build-aws/buildspec.yaml b/provider/notification-aws/build-aws/buildspec.yaml index d711e4398..e5fc2bd6e 100644 --- a/provider/notification-aws/build-aws/buildspec.yaml +++ b/provider/notification-aws/build-aws/buildspec.yaml @@ -27,6 +27,8 @@ phases: runtime-versions: java: corretto8 commands: + # fix error noted here: https://github.com/yarnpkg/yarn/issues/7866 + - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - - if [ $(echo $CODEBUILD_SOURCE_VERSION | grep -c ^refs/heads.*) -eq 1 ]; then echo "Branch name found"; else echo "This build only supports branch builds" && exit 1; fi - apt-get update -y -qq > /dev/null - apt-get install -y maven -qq >/dev/null -- GitLab