forked from docker-archive/deploykit
-
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.
Merge pull request docker-archive#495 from docker/add-latest
Always upload a latest.json for all channels
- Loading branch information
Showing
5 changed files
with
112 additions
and
4 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 |
---|---|---|
|
@@ -112,4 +112,4 @@ def main(): | |
|
||
|
||
if __name__ == '__main__': | ||
main() | ||
main() |
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,36 @@ | ||
#!/usr/bin/env python | ||
import json | ||
import argparse | ||
import re | ||
|
||
from utils import publish_cfn_template | ||
|
||
|
||
CFN_TEMPLATE = '/home/docker/docker_for_aws.template' | ||
CFN_CLOUD_TEMPLATE = '/home/docker/docker_for_aws_cloud.template' | ||
|
||
|
||
def main(): | ||
parser = argparse.ArgumentParser(description='Release Docker for AWS') | ||
parser.add_argument('-r', '--release_version', | ||
dest='release_version', required=True, | ||
help="Docker release version (i.e. 1.12.3-beta10)") | ||
parser.add_argument('-c', '--channel', | ||
dest='channel', default="beta", required=True, | ||
help="release channel (beta, alpha, rc, nightly)") | ||
args = parser.parse_args() | ||
|
||
release_version = args.release_version | ||
release_channel = args.channel | ||
docker_for_aws_version = u"aws-v{}".format(release_version) | ||
print("\nVariables") | ||
print(u"release_channel={}".format(release_channel)) | ||
print(u"release_version={}".format(release_version)) | ||
|
||
s3_latest_url = publish_cfn_template(release_channel, docker_for_aws_version) | ||
print("------------------") | ||
print(u"Finshed.. Latest CloudFormation \n\t URL={0}".format(s3_latest_url)) | ||
print("------------------") | ||
|
||
if __name__ == '__main__': | ||
main() |
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,35 @@ | ||
#!/usr/bin/env python | ||
import json | ||
import argparse | ||
import re | ||
|
||
from utils import publish_rg_template | ||
|
||
|
||
CFN_TEMPLATE = '/home/docker/editions.template' | ||
|
||
|
||
def main(): | ||
parser = argparse.ArgumentParser(description='Release Docker for AWS') | ||
parser.add_argument('-r', '--release_version', | ||
dest='release_version', required=True, | ||
help="Docker release version (i.e. 1.12.3-beta10)") | ||
parser.add_argument('-c', '--channel', | ||
dest='channel', default="beta", required=True, | ||
help="release channel (beta, alpha, rc, nightly)") | ||
args = parser.parse_args() | ||
|
||
release_version = args.release_version | ||
release_channel = args.channel | ||
docker_for_azure_version = u"azure-v{}".format(release_version) | ||
print("\nVariables") | ||
print(u"release_channel={}".format(release_channel)) | ||
print(u"release_version={}".format(release_version)) | ||
|
||
s3_latest_url = publish_rg_template(release_channel, docker_for_azure_version) | ||
print("------------------") | ||
print(u"Finshed.. Latest Azure template \n\t URL={0}".format(s3_latest_url)) | ||
print("------------------") | ||
|
||
if __name__ == '__main__': | ||
main() |
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