Skip to content

Commit

Permalink
fix(cache) utilize luarocks purge --old-versions to keep our luarocks…
Browse files Browse the repository at this point in the history
… current (#341)

* fix(cache) dont cache luarocks in our openresty container

* chore(ci) adjust our cleanup so retrying can be more successful
  • Loading branch information
hutchic authored Oct 7, 2020
1 parent d8a318c commit 8682de9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ pipeline {
}
steps {
sh 'echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin || true'
sh 'make cleanup'
sh 'rm -rf $KONG_SOURCE_LOCATION || true'
sh 'git clone --single-branch --branch $KONG_SOURCE https://github.com/Kong/kong.git $KONG_SOURCE_LOCATION'
sh 'make kong-test-container'
}
Expand Down
1 change: 1 addition & 0 deletions build-kong.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pushd /kong

mkdir -p /tmp/plugin

luarocks purge --tree=/tmp/build/usr/local --old-versions || true
/usr/local/bin/luarocks make kong-${ROCKSPEC_VERSION}.rockspec \
CRYPTO_DIR=/usr/local/kong \
OPENSSL_DIR=/usr/local/kong \
Expand Down

0 comments on commit 8682de9

Please sign in to comment.