travis: add docker build for images (#38)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
0f23d6bbf9
commit
6d96944158
2 changed files with 27 additions and 8 deletions
12
.travis.yml
Normal file
12
.travis.yml
Normal 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
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue