-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* renames ops tfvars * /version 0.7.5-alpha.3 * /version 0.8.0-alpha.1 * add release workflow (#10) * add release workflow * update version artifact * /version 0.8.0-alpha.2 * test artifacts * test * testing deploy artifacts * /version 0.8.0-alpha.3 * update artifact and docker latest * update env for docker tags * update latest artifact tags * /version 0.8.0-alpha.4 * add lowercase * /version 0.8.0-alpha.5 * update latest docker tag (#17) * /version 0.8.0-alpha.6 * Feature/deploy image cumulus (#18) * update latest docker tag * /version 0.8.0-alpha.3 * /version 0.8.0-alpha.4 * /version 0.8.0-alpha.5 * /version 0.8.0-alpha.6 * update github actions metadata actions --------- Co-authored-by: sliu008 <[email protected]> Co-authored-by: jamesfwood <[email protected]> * /version 0.8.0-alpha.7 * /version * Feature/deploy image cumulus (#20) * update latest docker tag * /version 0.8.0-alpha.3 * /version 0.8.0-alpha.4 * /version 0.8.0-alpha.5 * /version 0.8.0-alpha.6 * update github actions metadata actions * add prerelease tags --------- Co-authored-by: sliu008 <[email protected]> Co-authored-by: jamesfwood <[email protected]> * /version -alpha.1 * fix version * /version -0.8.0-alpha.8 * fix version * /version 0.8.0-alpha.8 * /version 0.8.0-alpha.9 * updated version * /version 0.9.0-alpha.1 * deploy * /version 0.9.0-alpha.2 * /version 0.9.0-alpha.3 * Feature/java11 (#24) * test java 11 build * add deploy images to swot cumulus and update readme * update checkout actions * update docker login action version * update changelog --------- Co-authored-by: James Wood <[email protected]> * /version 0.9.0-alpha.4 * /version 0.9.0-alpha.5 * /version * /version 0.10.0-alpha.1 * Feature/module image upload (#30) * write the footprint to a file in the footprint cli * change footprint cli output file extention name * add check for changelog.md * cleanup * try again * try again * again * clean out old items in changelog * update changelog * update changelog github actions check * update workflow * update workflow * update workflow * update workflow * update workflow * last try * remove changelog check --------- Co-authored-by: James Wood <[email protected]> * /version 0.10.0-alpha.2 * release 0.10.0 * /version 0.10.0-rc.1 * revert back * /version 0.10.0-rc.2 --------- Co-authored-by: Simon Liu <[email protected]> Co-authored-by: sliu008 <[email protected]> Co-authored-by: jamesfwood <[email protected]> Co-authored-by: sliu008 <[email protected]> Co-authored-by: podaac-forge bot <[email protected]> Co-authored-by: cqbanh <[email protected]> Co-authored-by: James Wood <[email protected]>
- Loading branch information
1 parent
532f591
commit f4293eb
Showing
9 changed files
with
91 additions
and
62 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
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
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,2 +1,2 @@ | ||
#Thu Dec 14 22:11:47 UTC 2023 | ||
version=0.9.0 | ||
#Thu Feb 22 22:55:56 UTC 2024 | ||
version=0.10.0-rc.2 |
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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
data "aws_ecr_authorization_token" "token" {} | ||
|
||
locals { | ||
lambda_container_image_uri_split = split("/", var.lambda_container_image_uri) | ||
ecr_image_name_and_tag = split(":", element(local.lambda_container_image_uri_split, length(local.lambda_container_image_uri_split) - 1)) | ||
ecr_image_name = "${local.environment}-${element(local.ecr_image_name_and_tag, 0)}" | ||
ecr_image_tag = element(local.ecr_image_name_and_tag, 1) | ||
} | ||
|
||
resource aws_ecr_repository "lambda-image-repo" { | ||
name = local.ecr_image_name | ||
tags = var.default_tags | ||
} | ||
|
||
|
||
resource null_resource ecr_login { | ||
triggers = { | ||
image_uri = var.lambda_container_image_uri | ||
} | ||
|
||
provisioner "local-exec" { | ||
interpreter = ["/bin/bash", "-e", "-c"] | ||
command = <<EOF | ||
docker login ${data.aws_ecr_authorization_token.token.proxy_endpoint} -u AWS -p ${data.aws_ecr_authorization_token.token.password} | ||
EOF | ||
} | ||
} | ||
|
||
|
||
resource null_resource upload_ecr_image { | ||
depends_on = [null_resource.ecr_login] | ||
triggers = { | ||
image_uri = var.lambda_container_image_uri | ||
} | ||
|
||
provisioner "local-exec" { | ||
interpreter = ["/bin/bash", "-e", "-c"] | ||
command = <<EOF | ||
docker pull ${var.lambda_container_image_uri} | ||
docker tag ${var.lambda_container_image_uri} ${aws_ecr_repository.lambda-image-repo.repository_url}:${local.ecr_image_tag} | ||
docker push ${aws_ecr_repository.lambda-image-repo.repository_url}:${local.ecr_image_tag} | ||
EOF | ||
} | ||
} |
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
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
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
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