File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
adminforth/documentation/blog
2025-02-19-compose-aws-ec2-ecr-terraform-github-actions
2025-02-19-compose-ec2-deployment-github-actions-registry Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,7 @@ resource "null_resource" "sync_files_and_run" {
465465 aws ecr get-login-password --region ${local.aws_region} --profile myaws | docker login --username AWS --password-stdin ${aws_ecr_repository.myadmin_repo.repository_url}
466466
467467 echo "Running build"
468- env $(cat .env.ecr | grep -v "#" | xargs) docker buildx bake --progress=plain --push --allow=fs.read=..
468+ env $(cat .env.ecr | grep -v "#" | xargs) docker buildx bake --progress=plain --push --allow=fs.read=.. -f compose.yml
469469
470470 # if you will change host, pleasee add -o StrictHostKeyChecking=no
471471 echo "Copy files to the instance"
Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ resource "null_resource" "sync_files_and_run" {
416416 echo '{"auths":{"appserver.local:5000":{"auth":"'$(echo -n "ci-user:$(cat ./.keys/registry.pure)" | base64 -w 0)'"}}}' > ~/.docker/config.json
417417
418418 echo "Running build"
419- docker buildx bake --progress=plain --push --allow=fs.read=..
419+ docker buildx bake --progress=plain --push --allow=fs.read=.. -f compose.yml
420420
421421 # compose temporarily it is not working https://github.com/docker/compose/issues/11072#issuecomment-1848974315
422422 # docker compose --progress=plain -p app -f ./compose.yml build --push
You can’t perform that action at this time.
0 commit comments