Skip to content

Commit

Permalink
chore(build): remove travis.yml file (#261)
Browse files Browse the repository at this point in the history
Signed-off-by: shubham <[email protected]>
  • Loading branch information
shubham14bajpai authored Mar 8, 2021
1 parent fcf6b88 commit 57ca459
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 107 deletions.
93 changes: 0 additions & 93 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ ifeq (${IMAGE_TAG}, )
export IMAGE_TAG
endif

ifeq (${TRAVIS_TAG}, )
ifeq (${RELEASE_TAG}, )
BASE_TAG = ci
export BASE_TAG
else
BASE_TAG = $(TRAVIS_TAG:v%=%)
BASE_TAG = $(RELEASE_TAG:v%=%)
export BASE_TAG
endif

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cstor-operators
[![Go](https://github.com/openebs/cstor-operators/workflows/Go/badge.svg)](https://github.com/openebs/cstor-operators/actions)
[![Build Status](https://travis-ci.org/openebs/cstor-operators.svg?branch=master)](https://travis-ci.org/openebs/cstor-operators)
[![Go Report](https://goreportcard.com/badge/github.com/openebs/cstor-operators)](https://goreportcard.com/report/github.com/openebs/cstor-operators)
[![Build Status](https://github.com/openebs/cstor-operators/actions/workflows/build.yml/badge.svg)](https://github.com/openebs/cstor-operators/actions/workflows/build.yml)
[![Slack](https://img.shields.io/badge/JOIN-SLACK-blue)](https://kubernetes.slack.com/messages/openebs/)

<img width="300" align="right" alt="OpenEBS Logo" src="https://raw.githubusercontent.com/cncf/artwork/master/projects/openebs/stacked/color/openebs-stacked-color.png" xmlns="http://www.w3.org/1999/html">
Expand Down
20 changes: 10 additions & 10 deletions build/push
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ BUILD_ID=$(git describe --tags --always)

# Determine the current branch
CURRENT_BRANCH=""
if [ -z ${TRAVIS_BRANCH} ];
if [ -z ${BRANCH} ];
then
CURRENT_BRANCH=$(git branch | grep \* | cut -d ' ' -f2)
else
CURRENT_BRANCH=${TRAVIS_BRANCH}
CURRENT_BRANCH=${BRANCH}
fi

#Depending on the branch where builds are generated,
Expand Down Expand Up @@ -107,12 +107,12 @@ then
# This unique/build image will be pushed to corresponding ci repo.
TagAndPushImage "${DIMAGE}-ci" "${BUILD_TAG}"

if [ ! -z "${TRAVIS_TAG}" ] ;
if [ ! -z "${RELEASE_TAG}" ] ;
then
# Push with different tags if tagged as a release
# When github is tagged with a release, then Travis will
# set the release tag in env TRAVIS_TAG
TagAndPushImage "${DIMAGE}" "${TRAVIS_TAG}"
# When github is tagged with a release, then github actions release workflow will
# set the release tag in env RELEASE_TAG
TagAndPushImage "${DIMAGE}" "${RELEASE_TAG}"
TagAndPushImage "${DIMAGE}" "latest"
fi;
else
Expand All @@ -127,12 +127,12 @@ then
# Push CI tagged image - :ci or :branch-ci
TagAndPushImage "quay.io/${DIMAGE}" "${CI_TAG}"

if [ ! -z "${TRAVIS_TAG}" ] ;
if [ ! -z "${RELEASE_TAG}" ] ;
then
# Push with different tags if tagged as a release
# When github is tagged with a release, then Travis will
# set the release tag in env TRAVIS_TAG
TagAndPushImage "quay.io/${DIMAGE}" "${TRAVIS_TAG}"
# When github is tagged with a release, then github actions release workflow will
# set the release tag in env RELEASE_TAG
TagAndPushImage "quay.io/${DIMAGE}" "${RELEASE_TAG}"
TagAndPushImage "quay.io/${DIMAGE}" "latest"
fi;
else
Expand Down

0 comments on commit 57ca459

Please sign in to comment.