From 229d3978df6ce66bc5d626fe761507f4d9ae6383 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Thu, 10 Oct 2019 13:14:29 -0500 Subject: [PATCH 1/2] Redeploy Inflator after builds --- build.cake | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/build.cake b/build.cake index b6813d8f8b..6df2a5ecb2 100644 --- a/build.cake +++ b/build.cake @@ -61,6 +61,24 @@ Task("docker-inflator") ); DockerTag(mainTag, latestTag); DockerPush(latestTag); + + // Restart the Inflator + var netkanImage = "kspckan/netkan"; + DockerPull(netkanImage); + DockerRun(new DockerContainerRunSettings() + { + Env = new string[] + { + "AWS_ACCESS_KEY_ID", + "AWS_SECRET_ACCESS_KEY", + "AWS_DEFAULT_REGION" + } + }, + netkanImage, + "redeploy-service", + "--cluster", "NetKANCluster", + "--service-name", "Inflator" + ); }); Task("osx") From 6db3a017395d09557686b451bb4505dc42620db2 Mon Sep 17 00:00:00 2001 From: Leon Wright Date: Thu, 17 Oct 2019 17:17:05 +0800 Subject: [PATCH 2/2] Add Encrypted AWS Credentials with IAM Access to redeploy Indexing services --- .travis.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.travis.yml b/.travis.yml index dec40f0dcf..d91b37ca22 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,9 @@ env: - BUILD_RELEASE_MONO_VERSION=5.16.0 - DOCKERHUB_USERNAME=kspckanbuilder - secure: "UGXJG9jB9tGwjJXxG0Beu4Poz0leuiCBItnfTTKRm1a/NxXf1eoOH9p9icY5Ur2xHwqh0uWSznuL2aNr58CXtzTcMpXrcUhRsO63FB3Cz6tSdZEb+pKQJ23zmC9929DklKRGUT2D/eBcJcnV+/eAtkarrfLBU1avUQAVJgqXvMI=" + - AWS_DEFAULT_REGION=us-west-2 + - AWS_ACCESS_KEY_ID=AKIAZA4K6RW77XSCAMI2 + - secure: "F4Ee6zQoAjG8a7n7c+wbeWMMzx00bQ/ci5rhKE7EZeMTYsvuiMSorUb4ShvRqbnuLKQH7NxOibnsQHXuQqUw6ZYyESU1xnFAYwhDRQrTdwPOrAOOiUzOhjB4yp3mdzMa8VOcFUUzk+QyrYpds3EUQAqE1a3Ht9Aji586QgK+sY8=" matrix: - BUILD_CONFIGURATION=Debug - BUILD_CONFIGURATION=Release