diff options
author | Jake Buchholz <tomalok@gmail.com> | 2019-06-03 19:38:33 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2019-07-05 12:51:09 -0700 |
commit | b517dda7b8e66d610172c70ea15ffd9853807f62 (patch) | |
tree | f1d5b09923b69d9e1c44eca5df749ab3d88890e8 | |
parent | 8f563aa4f1b33651a87399e73bfcf82fef858605 (diff) | |
download | alpine-ec2-ami-b517dda7b8e66d610172c70ea15ffd9853807f62.tar.bz2 alpine-ec2-ami-b517dda7b8e66d610172c70ea15ffd9853807f62.tar.xz alpine-ec2-ami-b517dda7b8e66d610172c70ea15ffd9853807f62.zip |
remove new release detection/auto-update of version -- future feature
-rwxr-xr-x | scripts/make-amis | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/make-amis b/scripts/make-amis index 9ea3a16..bc9826f 100755 --- a/scripts/make-amis +++ b/scripts/make-amis | |||
@@ -19,30 +19,8 @@ PROFILE=$1; shift | |||
19 | for BUILD in $BUILDS | 19 | for BUILD in $BUILDS |
20 | do | 20 | do |
21 | printf "\n*** %s ***\n\n" "$BUILD" | 21 | printf "\n*** %s ***\n\n" "$BUILD" |
22 | |||
23 | BUILD_DIR="profile/$PROFILE/$BUILD" | 22 | BUILD_DIR="profile/$PROFILE/$BUILD" |
24 | 23 | ||
25 | # get version, release, and arch | ||
26 | eval "$( | ||
27 | grep -E '"(version|release|arch)"' "$BUILD_DIR/vars.json" | \ | ||
28 | sed -e 's/[ ",]//g' -e 's/:/=/g' | ||
29 | )" | ||
30 | |||
31 | if [ "$version" != 'edge' ]; then | ||
32 | # get current Alpine release for this version | ||
33 | alpine_release=$( | ||
34 | curl -s "http://dl-cdn.alpinelinux.org/alpine/v$version/main/$arch/" | \ | ||
35 | grep '"alpine-base-' | cut -d'"' -f2 | cut -d- -f3 | ||
36 | ) | ||
37 | # update core version profile's release if necessary | ||
38 | if [ "$alpine_release" != "$release" ]; then | ||
39 | printf "=== New release (%s) detected! ===\n\n" "$alpine_release" | ||
40 | sed -i '' -e "s/$release/$alpine_release/" "../profiles/version/$version" | ||
41 | ./resolve-profile.py "$PROFILE" | ||
42 | # NOTE: this does NOT update 'revision', it's at target profile/build level | ||
43 | fi | ||
44 | fi | ||
45 | |||
46 | # execute packer, capture output and exit code | 24 | # execute packer, capture output and exit code |
47 | ( | 25 | ( |
48 | "$PACKER" build -var-file="$BUILD_DIR/vars.json" packer.json | 26 | "$PACKER" build -var-file="$BUILD_DIR/vars.json" packer.json |