diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c79b0c2 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +sudo: required + +services: +- docker + +install: +- curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v0.12.0/skaffold-linux-amd64 +- chmod +x skaffold +- sudo mv skaffold /usr/local/bin + +script: +- skaffold build --profile travis-ci diff --git a/skaffold.yaml b/skaffold.yaml index 8ff67ee..bd04f86 100644 --- a/skaffold.yaml +++ b/skaffold.yaml @@ -45,15 +45,22 @@ deploy: manifests: - ./kubernetes-manifests/**.yaml -# "gcb" profile allows building and pushing the images -# on Google Container Builder without requiring docker -# installed on the developer machine. However, note that -# since GCB does not cache the builds, each build will -# start from scratch and therefore take a long time. -# -# This is not used by default. To use it, run: -# skaffold run -p gcb + profiles: + # "travis-ci" profile is used to build the images without + # pushing them. + - name: travis-ci + build: + local: + skipPush: true + # "gcb" profile allows building and pushing the images + # on Google Container Builder without requiring docker + # installed on the developer machine. However, note that + # since GCB does not cache the builds, each build will + # start from scratch and therefore take a long time. + # + # This is not used by default. To use it, run: + # skaffold run -p gcb - name: gcb build: googleCloudBuild: