Skip to content

Commit

Permalink
single platform
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Jul 26, 2024
1 parent e39d448 commit fcaa281
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,66 +24,68 @@ phases:
- aws ecr create-repository --repository-name mrt-opendj || echo 'ignore if exists...'
- aws ecr create-repository --repository-name mrt-init || echo 'ignore if exists...'
- aws ecr create-repository --repository-name mrt-database || echo 'ignore if exists...'
- BUILDCMD="buildx build --platform linux/arm64,linux/amd64 --push"
- BUILDCMD="build --push"

build:
on-failure: ABORT
commands:
- docker buildx create --use
- |
docker buildx build --quiet --platform linux/arm64,linux/amd64 \
docker ${BUILDCMD} \
-t ${ECR_REGISTRY}/merritt-maven:dev \
--build-arg JAVA_RELEASE_ARG=${JAVA_RELEASE:-8} \
--push mrt-inttest-services/merritt-maven
mrt-inttest-services/merritt-maven
- |
docker buildx build --quiet --platform linux/arm64,linux/amd64 \
docker ${BUILDCMD} \
-t ${ECR_REGISTRY}/merritt-tomcat:dev \
--push mrt-inttest-services/merritt-tomcat
mrt-inttest-services/merritt-tomcat
- |
docker buildx build --quiet --platform linux/arm64,linux/amd64 \
docker ${BUILDCMD} \
-t ${ECR_REGISTRY}/mock-merritt-it:dev \
--push mrt-inttest-services/mock-merritt-it
mrt-inttest-services/mock-merritt-it
- |
docker buildx build --quiet --platform linux/arm64,linux/amd64 \
docker ${BUILDCMD} \
-t ${ECR_REGISTRY}/mrt-it-database:dev \
--push mrt-inttest-services/mrt-it-database
mrt-inttest-services/mrt-it-database
- |
docker buildx build --quiet --platform linux/arm64,linux/amd64 \
docker ${BUILDCMD} \
-t ${ECR_REGISTRY}/mrt-it-database-audit-replic:dev \
--build-arg LOAD_SQL=/tmp/audit_replic_data.sql \
--push mrt-inttest-services/mrt-it-database
mrt-inttest-services/mrt-it-database
- |
docker buildx build --quiet --platform linux/arm64,linux/amd64 \
docker ${BUILDCMD} \
-t ${ECR_REGISTRY}/mrt-minio-it:dev \
--push mrt-inttest-services/mrt-minio-it
mrt-inttest-services/mrt-minio-it
- |
docker buildx build --quiet --platform linux/arm64,linux/amd64 \
docker ${BUILDCMD} \
-t ${ECR_REGISTRY}/mrt-minio-it-with-content:dev \
--build-arg ECR_REGISTRY=${ECR_REGISTRY} \
--push mrt-inttest-services/mrt-minio-it-with-content
mrt-inttest-services/mrt-minio-it-with-content
- |
docker buildx build --quiet --platform linux/arm64,linux/amd64 \
docker ${BUILDCMD} \
-t ${ECR_REGISTRY}/mrt-database \
--push mrt-services/mysql
mrt-services/mysql
- |
docker buildx build --quiet --platform linux/arm64,linux/amd64 \
docker ${BUILDCMD} \
-t ${ECR_REGISTRY}/mrt-opendj \
--push mrt-services/ldap
mrt-services/ldap
- |
docker buildx build --quiet --platform linux/arm64,linux/amd64 \
docker ${BUILDCMD} \
-t ${ECR_REGISTRY}/mrt-init \
--push mrt-services/merritt-init
mrt-services/merritt-init
- |
docker buildx build --quiet --platform linux/arm64,linux/amd64 \
docker ${BUILDCMD} \
-t ${ECR_REGISTRY}/callback \
--push mrt-services/callback
mrt-services/callback
post_build:
# this build may fail due to rate limits
# on-failure: ABORT
commands:
- docker buildx create --use
- |
docker buildx build --quiet --platform linux/arm64,linux/amd64 \
docker ${BUILDCMD} \
-t ${ECR_REGISTRY}/fakesmtp:dev \
--push mrt-inttest-services/fakesmtp

0 comments on commit fcaa281

Please sign in to comment.