diff --git a/buildspec.yml b/buildspec.yml index 34706c9e..13e8e826 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -7,7 +7,8 @@ phases: - curl -sS -o kubectl https://amazon-eks.s3-us-west-2.amazonaws.com/1.14.6/2019-08-22/bin/linux/amd64/kubectl - chmod +x ./kubectl ./aws-iam-authenticator - export PATH=$PWD/:$PATH - - apt-get update && apt-get -y install jq python3-pip python3-dev && pip3 install --upgrade awscli + - apt-get update && apt-get -y install jq python3-pip python3-dev + - pip3 install 'awscli<1.18' --upgrade pre_build: commands: - TAG="$REPOSITORY_NAME.$REPOSITORY_BRANCH.$ENVIRONMENT_NAME.$(date +%Y-%m-%d.%H.%M.%S).$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | head -c 8)" @@ -16,6 +17,7 @@ phases: - export KUBECONFIG=$HOME/.kube/config build: commands: + - docker login -u ekslabaccount -p 76700ac2-6b4d-4211-89f9-e0bacd318ef0 - docker build --tag $REPOSITORY_URI:$TAG . post_build: @@ -31,3 +33,4 @@ phases: - printf '[{"name":"hello-k8s","imageUri":"%s"}]' $REPOSITORY_URI:$TAG > build.json artifacts: files: build.json + diff --git a/main.go b/main.go index 2ff83f10..897cb857 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ func main() { f := fib() - res := &response{Message: "Hello World"} + res := &response{Message: "Update to Feature v1.2"} for _, e := range os.Environ() { pair := strings.Split(e, "=")