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,6 +45,14 @@ deploy:
manifests:
- ./kubernetes-manifests/**.yaml
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
@ -53,7 +61,6 @@ deploy:
#
# This is not used by default. To use it, run:
# skaffold run -p gcb
profiles:
- name: gcb
build:
googleCloudBuild: