【发布时间】:2013-12-23 01:07:04
【问题描述】:
如何获得提交的当前 git sha git aws.push ?
我的 container_commands 需要在以 git sha 作为文件名的服务器上下载一个文件,所以我需要一种方法来确定它。
我一直在浏览/opt/elasticbanstalk/ 并找到了文件
/opt/elasticbeanstalk/deploy/configuration/appsourceurl 其中包含
"url": "https://elasticbeanstalk-us-west-43434324.s3.amazonaws.com/resources%2Fenvironments%2Dg-fea2ffeaf5%2F_runtime%2F_versions%2Fbb-test-eb%2Fgit-6cb3416a7a5a84ce864dd0213236984age4b0b9-2678564154681?Expires=1417813357&AWSAccessKeyId=-----&Signature=-----"
我可以解析这个并提取 git-sha 这个 git sha 与我在本地的 git head sha 不同的问题,我只是 git aws.pushed!为什么?
【问题讨论】:
标签: git amazon-web-services amazon-elastic-beanstalk