mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 06:10:22 +00:00
push image into quay.io
Signed-off-by: Huamin Chen <hchen@redhat.com>
This commit is contained in:
parent
661b49bd41
commit
b9f176106d
@ -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