Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
afbceb3c
Commit
afbceb3c
authored
7 years ago
by
nadeemshahzad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tag ami with configuration_internal commit hash
parent
31e113b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
util/vpc-tools/abbey.py
+3
-1
No files found.
util/vpc-tools/abbey.py
View file @
afbceb3c
...
@@ -493,6 +493,8 @@ if [[ ! -z $git_repo_internal ]]; then
...
@@ -493,6 +493,8 @@ if [[ ! -z $git_repo_internal ]]; then
$git_cmd clone $git_repo_internal $git_repo_internal_name
$git_cmd clone $git_repo_internal $git_repo_internal_name
cd $git_repo_internal_name
cd $git_repo_internal_name
$git_cmd checkout $configuration_internal_version
$git_cmd checkout $configuration_internal_version
CONFIGURATION_INTERNAL_COMMIT_HASH=$($git_cmd rev-parse --short HEAD)
export CONFIGURATION_INTERNAL_COMMIT_HASH
cd $base_dir
cd $base_dir
fi
fi
...
@@ -717,7 +719,7 @@ def create_ami(instance_id, name, description):
...
@@ -717,7 +719,7 @@ def create_ami(instance_id, name, description):
conf_secure_tag
=
"{} {}"
.
format
(
args
.
configuration_secure_repo
,
args
.
configuration_secure_version
)
conf_secure_tag
=
"{} {}"
.
format
(
args
.
configuration_secure_repo
,
args
.
configuration_secure_version
)
img
.
add_tag
(
"version:configuration_secure"
,
conf_secure_tag
)
img
.
add_tag
(
"version:configuration_secure"
,
conf_secure_tag
)
time
.
sleep
(
AWS_API_WAIT_TIME
)
time
.
sleep
(
AWS_API_WAIT_TIME
)
conf_internal_tag
=
"{} {}"
.
format
(
args
.
configuration_internal_repo
,
args
.
configuration_internal_version
)
conf_internal_tag
=
"{} {}"
.
format
(
args
.
configuration_internal_repo
,
os
.
environ
[
'CONFIGURATION_INTERNAL_COMMIT_HASH'
]
)
img
.
add_tag
(
"version:configuration_internal"
,
conf_internal_tag
)
img
.
add_tag
(
"version:configuration_internal"
,
conf_internal_tag
)
time
.
sleep
(
AWS_API_WAIT_TIME
)
time
.
sleep
(
AWS_API_WAIT_TIME
)
img
.
add_tag
(
"cache_id"
,
args
.
cache_id
)
img
.
add_tag
(
"cache_id"
,
args
.
cache_id
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment