Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ben851 committed Aug 23, 2024
1 parent a6d4d63 commit f03f5ca
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions aws/ecr/images.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "null_resource" "push_admin_docker_image" {
depends_on = [null_resource.build_admin_docker_image]

provisioner "local-exec" {
command = "docker push ${aws_ecr_repository.notify_admin[0].repository_url}:bootstrap"
command = "aws ecr get-login-password --region ca-central-1 | docker --config ${GITHUB_WORKSPACE}/${GITHUB_RUN_ID} login --username AWS --password-stdin 800095993820.dkr.ecr.ca-central-1.amazonaws.com && docker push ${aws_ecr_repository.notify_admin[0].repository_url}:bootstrap"
}

}
Expand Down Expand Up @@ -81,7 +81,7 @@ resource "null_resource" "push_api_docker_image" {
depends_on = [null_resource.build_api_docker_image]

provisioner "local-exec" {
command = "docker push ${aws_ecr_repository.api-lambda.repository_url}:bootstrap"
command = "aws ecr get-login-password --region ca-central-1 | docker --config ${GITHUB_WORKSPACE}/${GITHUB_RUN_ID} login --username AWS --password-stdin 800095993820.dkr.ecr.ca-central-1.amazonaws.com && docker push ${aws_ecr_repository.api-lambda.repository_url}:bootstrap"
}

}
Expand Down Expand Up @@ -122,7 +122,7 @@ resource "null_resource" "push_heartbeat_docker_image" {
depends_on = [null_resource.build_heartbeat_docker_image]

provisioner "local-exec" {
command = "docker push ${aws_ecr_repository.heartbeat.repository_url}:bootstrap"
command = "aws ecr get-login-password --region ca-central-1 | docker --config ${GITHUB_WORKSPACE}/${GITHUB_RUN_ID} login --username AWS --password-stdin 800095993820.dkr.ecr.ca-central-1.amazonaws.com && docker push ${aws_ecr_repository.heartbeat.repository_url}:bootstrap"
}

}
Expand Down Expand Up @@ -151,7 +151,7 @@ resource "null_resource" "push_google_cidr_docker_image" {
depends_on = [null_resource.build_google_cidr_docker_image]

provisioner "local-exec" {
command = "docker push ${aws_ecr_repository.google-cidr.repository_url}:bootstrap"
command = "aws ecr get-login-password --region ca-central-1 | docker --config ${GITHUB_WORKSPACE}/${GITHUB_RUN_ID} login --username AWS --password-stdin 800095993820.dkr.ecr.ca-central-1.amazonaws.com && docker push ${aws_ecr_repository.google-cidr.repository_url}:bootstrap"
}

}
Expand Down Expand Up @@ -180,7 +180,7 @@ resource "null_resource" "push_ses_receiving_emails_docker_image" {
depends_on = [null_resource.build_ses_receiving_emails_docker_image]

provisioner "local-exec" {
command = "docker push ${aws_ecr_repository.ses_receiving_emails.repository_url}:bootstrap"
command = "aws ecr get-login-password --region ca-central-1 | docker --config ${GITHUB_WORKSPACE}/${GITHUB_RUN_ID} login --username AWS --password-stdin 800095993820.dkr.ecr.ca-central-1.amazonaws.com && docker push ${aws_ecr_repository.ses_receiving_emails.repository_url}:bootstrap"
}

}
Expand Down Expand Up @@ -209,7 +209,7 @@ resource "null_resource" "push_ses_to_sqs_email_callbacks_docker_image" {
depends_on = [null_resource.build_ses_to_sqs_email_callbacks_docker_image]

provisioner "local-exec" {
command = "docker push ${aws_ecr_repository.ses_to_sqs_email_callbacks.repository_url}:bootstrap"
command = "aws ecr get-login-password --region ca-central-1 | docker --config ${GITHUB_WORKSPACE}/${GITHUB_RUN_ID} login --username AWS --password-stdin 800095993820.dkr.ecr.ca-central-1.amazonaws.com && docker push ${aws_ecr_repository.ses_to_sqs_email_callbacks.repository_url}:bootstrap"
}

}
Expand Down Expand Up @@ -238,7 +238,7 @@ resource "null_resource" "push_sns_to_sqs_sms_callbacks_docker_image" {
depends_on = [null_resource.build_sns_to_sqs_sms_callbacks_docker_image]

provisioner "local-exec" {
command = "docker push ${aws_ecr_repository.sns_to_sqs_sms_callbacks.repository_url}:bootstrap"
command = "aws ecr get-login-password --region ca-central-1 | docker --config ${GITHUB_WORKSPACE}/${GITHUB_RUN_ID} login --username AWS --password-stdin 800095993820.dkr.ecr.ca-central-1.amazonaws.com && docker push ${aws_ecr_repository.sns_to_sqs_sms_callbacks.repository_url}:bootstrap"
}

}
Expand Down Expand Up @@ -266,7 +266,7 @@ resource "null_resource" "push_system_status_docker_image" {
depends_on = [null_resource.build_system_status_docker_image]

provisioner "local-exec" {
command = "docker push ${aws_ecr_repository.system_status.repository_url}:bootstrap"
command = "aws ecr get-login-password --region ca-central-1 | docker --config ${GITHUB_WORKSPACE}/${GITHUB_RUN_ID} login --username AWS --password-stdin 800095993820.dkr.ecr.ca-central-1.amazonaws.com && docker push ${aws_ecr_repository.system_status.repository_url}:bootstrap"
}

}
Expand All @@ -279,7 +279,7 @@ resource "null_resource" "build_pinpoint_to_sqs_sms_callbacks_docker_image" {
triggers = {
always_run = "${timestamp()}"
}

depends_on = [
null_resource.lambda_repo_clone
]
Expand All @@ -294,6 +294,6 @@ resource "null_resource" "push_pinpoint_to_sqs_sms_callbacks_docker_image" {
depends_on = [null_resource.build_pinpoint_to_sqs_sms_callbacks_docker_image]

provisioner "local-exec" {
command = "docker push ${aws_ecr_repository.pinpoint_to_sqs_sms_callbacks.repository_url}:bootstrap"
command = "aws ecr get-login-password --region ca-central-1 | docker --config ${GITHUB_WORKSPACE}/${GITHUB_RUN_ID} login --username AWS --password-stdin 800095993820.dkr.ecr.ca-central-1.amazonaws.com && docker push ${aws_ecr_repository.pinpoint_to_sqs_sms_callbacks.repository_url}:bootstrap"
}
}

0 comments on commit f03f5ca

Please sign in to comment.