-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use travis to release the component Signed-off-by: Francesco Romani <fromani@redhat.com>
- Loading branch information
Showing
6 changed files
with
44 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
sudo: required | ||
dist: xenial | ||
language: go | ||
go: "1.11" | ||
|
||
services: | ||
- docker | ||
|
||
jobs: | ||
include: | ||
- stage: Build and Deploy | ||
name: Build and Deploy to GitHub | ||
before_script: skip | ||
script: make release "VERSION=$TRAVIS_TAG" | ||
deploy: | ||
provider: releases | ||
api_key: "$GITHUB_TOKEN" | ||
skip_cleanup: true | ||
overwrite: true | ||
file_glob: true | ||
file: | ||
- _out/* | ||
name: $TRAVIS_TAG | ||
on: | ||
tags: true | ||
branch: master | ||
repo: fromanirh/kubevirt-metrics-collector |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,19 @@ | ||
all: binary | ||
|
||
docker: binary | ||
docker build . | ||
#vendor: | ||
# dep ensure | ||
|
||
dockertag: binary | ||
./hack/docker/tag.sh | ||
binary: #vendor | ||
./hack/build/build.sh ${VERSION} | ||
|
||
dockerpush: binary | ||
./hack/docker/push.sh | ||
|
||
vendor: | ||
dep ensure | ||
|
||
binary: vendor | ||
./hack/build/build.sh | ||
release: binary | ||
mkdir -p _out | ||
cp cmd/kubevirt-metrics-collector/kubevirt-metrics-collector _out/kubevirt-metrics-collector-${VERSION}-linux-amd64 | ||
hack/container/docker-push.sh ${VERSION} | ||
|
||
clean: | ||
rm -f cmd/kubevirt-metrics-collector/kubevirt-metrics-collector | ||
rm -rf _out | ||
|
||
.PHONY: all docker dockertag dockerpush binary clean | ||
.PHONY: all vendor binary release clean | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
#!/bin/bash | ||
|
||
TAG="${1:-devel}" | ||
set -e | ||
|
||
docker build -t fromanirh/kubevirt-metrics-collector:$TAG . && docker push fromanirh/kubevirt-metrics-collector:$TAG | ||
VERSION="${1:-devel}" | ||
|
||
echo "$QUAY_BOT_PASS" | docker login -u="$QUAY_BOT_USER" --password-stdin quay.io | ||
docker build -t quay.io/fromani/kubevirt-metrics-collector:$VERSION . | ||
docker push quay.io/fromani/kubevirt-metrics-collector:$VERSION |
This file was deleted.
Oops, something went wrong.