1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hello,
I've seen this kind of setup/arrangements handled in the Codebuild/Buildspec step itself
i.e. Add the build, deploy, and package steps in the Build command of the buildspec.yml file
build:
commands:
- echo "Building the Docker image....."
- docker build -t app/<app_name> .
- docker tag app/<app_name> <aws_acct_id>.dkr.ecr.<aws_region>.amazonaws.com/app/<app_name>$COMMIT_SHA
- docker push <aws_acct_id>.dkr.ecr.<aws_region>.amazonaws.com/app/<app_name>$COMMIT_SHA
- echo "Build finished and image pushed on `date`"
You can then use the latest SHA/Tag of the ECR image to update lambda deployment.
HTH
répondu il y a 9 mois
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a un mois
- demandé il y a 6 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans