mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
commit
a8ba1a7df3
@ -12,3 +12,8 @@ before_script:
|
|||||||
script:
|
script:
|
||||||
- test -z $(gofmt -s -l $GO_FILES)
|
- test -z $(gofmt -s -l $GO_FILES)
|
||||||
- go vet -v $(go list ./... | grep -v /vendor/)
|
- go vet -v $(go list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
- if [ "${TRAVIS_BRANCH}" == "master" ] && [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
|
||||||
|
sudo bash -c 'docker login -u "${QUAY_IO_USERNAME}" -p "${QUAY_IO_PASSWORD}" quay.io ; make push-container';
|
||||||
|
fi
|
||||||
|
2
Makefile
2
Makefile
@ -31,6 +31,8 @@ container: rbdplugin
|
|||||||
cp _output/rbdplugin deploy/docker
|
cp _output/rbdplugin deploy/docker
|
||||||
docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) deploy/docker
|
docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) deploy/docker
|
||||||
|
|
||||||
|
push-container: container
|
||||||
|
docker push $(IMAGE_NAME):$(IMAGE_VERSION)
|
||||||
clean:
|
clean:
|
||||||
go clean -r -x
|
go clean -r -x
|
||||||
rm -f deploy/docker/rbdplugin
|
rm -f deploy/docker/rbdplugin
|
||||||
|
Loading…
Reference in New Issue
Block a user