From 3ba0cd7240c12304449410119f0fe52770c119c9 Mon Sep 17 00:00:00 2001 From: Niall Thomson Date: Sat, 20 Jul 2024 20:32:55 -0600 Subject: [PATCH] Update flux lab for new sample app repo structure --- manifests/modules/automation/gitops/flux/buildspec.yml | 3 +-- website/docs/automation/gitops/flux/ci.md | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/manifests/modules/automation/gitops/flux/buildspec.yml b/manifests/modules/automation/gitops/flux/buildspec.yml index 01281bb11..c44a28d2d 100644 --- a/manifests/modules/automation/gitops/flux/buildspec.yml +++ b/manifests/modules/automation/gitops/flux/buildspec.yml @@ -18,9 +18,8 @@ phases: - echo Building a container image ... - component=ui - component_dir="./src/$component" - - source "$component_dir/scripts/build.source" - cd $component_dir - - docker build -f $dockerfile $docker_build_args -t $ECR_URI:$IMAGE_TAG . + - docker build -t $ECR_URI:$IMAGE_TAG . - docker tag $ECR_URI:$IMAGE_TAG $ECR_URI:$IMAGE_TAG_I - docker images post_build: diff --git a/website/docs/automation/gitops/flux/ci.md b/website/docs/automation/gitops/flux/ci.md index e8d0b51fd..6f8b3fa80 100644 --- a/website/docs/automation/gitops/flux/ci.md +++ b/website/docs/automation/gitops/flux/ci.md @@ -21,7 +21,6 @@ Next, populate the CodeCommit repository with the sources from the public reposi $ git clone https://github.com/aws-containers/retail-store-sample-app ~/environment/retail-store-sample-app $ git -C ~/environment/retail-store-sample-codecommit checkout -b main $ cp -R ~/environment/retail-store-sample-app/src ~/environment/retail-store-sample-codecommit -$ cp -R ~/environment/retail-store-sample-app/images ~/environment/retail-store-sample-codecommit ``` We use AWS CodeBuild and define `buildspec.yml` to build new `x86_64` and `arm64` images in parallel.