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,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:
|
||||||
|
|
Loading…
Reference in a new issue