Sfoglia il codice sorgente

Makefile: Push "latest" to flannel-git on quay.io

Tom Denham 8 anni fa
parent
commit
68664acf7f
2 ha cambiato i file con 16 aggiunte e 10 eliminazioni
  1. 12 9
      .travis.yml
  2. 4 1
      Makefile

+ 12 - 9
.travis.yml

@@ -1,13 +1,9 @@
-language: go
+sudo: required
+
+services:
+    - docker
 
-matrix:
-  include:
-    - go: 1.5.4
-      env: GO15VENDOREXPERIMENT=1
-    - go: 1.6.2
-    - go: tip
-  allow_failures: 
-    - go: tip
+language: go
 
 env:
   global:
@@ -20,5 +16,12 @@ install:
 script:
  - make test
 
+after_success:
+  - if [ "$TRAVIS_BRANCH" = "master" ]; then
+    make flannel-git;
+    docker login -u="$QUAY_USERNAME" -p="$QUAY_PASSWORD" quay.io;
+    docker push quay.io/coreos/flannel-git;
+    fi
+
 notifications:
   email: false

+ 4 - 1
Makefile

@@ -1,4 +1,4 @@
-.PHONY: test e2e-test cover gofmt gofmt-fix license-check clean tar.gz docker-push release docker-push-all
+.PHONY: test e2e-test cover gofmt gofmt-fix license-check clean tar.gz docker-push release docker-push-all flannel-git
 
 # Registry used for publishing images
 REGISTRY?=quay.io/coreos
@@ -156,3 +156,6 @@ docker-push-all:
 	ARCH=arm make docker-push
 	ARCH=arm64 make docker-push
 	ARCH=ppc64le make docker-push
+
+flannel-git: dist/flanneld-amd64 dist/iptables-amd64 dist/libpthread.so.0-amd64
+	docker build -f Dockerfile.amd64 -t quay.io/coreos/flannel-git .