-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e6721ca
commit 71309a7
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
resource "null_resource" "wordpress_pullpush" { | ||
resource "null_resource" "docker_pullpush" { | ||
|
||
triggers = { | ||
shell_hash = sha256(var.docker_source) | ||
} | ||
provisioner "local-exec" { | ||
// ARGs to script are source image, region, AWS Account ID, aws_profile | ||
command = "${abspath(path.module)}/docker_pullpush.sh ${var.docker_source} ${var.aws_region} ${var.aws_account_id} ${var.aws_profile}" | ||
// ARGs to script are source image, region, AWS Account ID, aws_profile, ECR Repo, Image Tag | ||
command = "${abspath(path.module)}/docker_pullpush.sh ${var.docker_source} ${var.aws_region} ${var.aws_account_id} ${var.aws_profile} ${var.ecr_repo_name} ${var.ecr_repo_tag}" | ||
} | ||
} |