travis: add docker build for images (#38)

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-09-06 15:35:36 -07:00 committed by GitHub
parent 0f23d6bbf9
commit 6d96944158
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 8 deletions

12
.travis.yml Normal file
View file

@ -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

View file

@ -45,15 +45,22 @@ deploy:
manifests: manifests:
- ./kubernetes-manifests/**.yaml - ./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: 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 - name: gcb
build: build:
googleCloudBuild: googleCloudBuild: