Skip to content

Commit

Permalink
fix(test) adjust how the test determines version we're trying to build
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Feb 13, 2020
1 parent 04ee359 commit f8c849a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ RUN if [ "$ASSET_LOCATION" = "local" ] ; then exit 0 ; fi; \
RUN mkdir /kong; \
tar -C /kong -xzf kong.tar.gz

FROM alpine:3.10
FROM alpine:3.11

LABEL maintainer="Kong <support@konghq.com>"

Expand Down
2 changes: 1 addition & 1 deletion tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -ex

# Test the proper version was buid
pushd $BASE
version_given="$(grep -m 1 VERSION build-ce.sh | awk -F'"' '{print $2}')"
version_given="$(grep -o -P '(?<=-).*(?=})' build-ce.sh)"
version_built="$(docker run -ti --rm kong-$BASE kong version | tr -d '[:space:]')"

if [[ "$version_given" != "$version_built" ]]; then
Expand Down

0 comments on commit f8c849a

Please sign in to comment.