This repository was archived by the owner on Nov 9, 2022. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.
File tree Expand file tree Collapse file tree 2 files changed +22
-13
lines changed Expand file tree Collapse file tree 2 files changed +22
-13
lines changed Original file line number Diff line number Diff line change 13
13
- IMAGE_NAME=storageos/cluster-operator
14
14
- IMAGE_TAG=test
15
15
16
- before_install :
17
- - |
18
- if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md)|(\.MD)|(\.png)|(\.pdf)|^(doc/)|^(MAINTAINERS)|^(LICENSE)'; then
19
- # Do not skip if it's a tagged build.
20
- if [[ -z "$TRAVIS_TAG" ]]; then
21
- echo "Only doc files were updated, not running the CI."
22
- exit
23
- fi
24
- fi
16
+ # before_install:
17
+ # - |
18
+ # if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md)|(\.MD)|(\.png)|(\.pdf)|^(doc/)|^(MAINTAINERS)|^(LICENSE)'; then
19
+ # # Do not skip if it's a tagged build.
20
+ # if [[ -z "$TRAVIS_TAG" ]]; then
21
+ # echo "Only doc files were updated, not running the CI."
22
+ # exit
23
+ # fi
24
+ # fi
25
25
# - docker run -d -p 2399:2399 quay.io/coreos/etcd:v3.3.10 /usr/local/bin/etcd -advertise-client-urls http://0.0.0.0:2399 -listen-client-urls http://0.0.0.0:2399
26
26
27
27
# Skip downloading deps.
@@ -65,14 +65,12 @@ jobs:
65
65
- make image/cluster-operator
66
66
before_deploy :
67
67
- docker login -u "$REGISTRY_USER" -p "$REGISTRY_PASS"
68
- - docker tag "${IMAGE_NAME}:${IMAGE_TAG}" "${IMAGE_NAME}:latest"
69
- - docker tag "${IMAGE_NAME}:${IMAGE_TAG}" "${IMAGE_NAME}:${TRAVIS_TAG}"
70
68
deploy :
71
69
- provider : script
72
- script : docker push "${IMAGE_NAME}:latest" && docker push "${IMAGE_NAME}:${TRAVIS_TAG}"
70
+ script : bash scripts/deploy.sh tagged
73
71
on :
74
72
tags : true
75
73
- provider : script
76
- script : docker tag "${IMAGE_NAME}:${IMAGE_TAG}" "${IMAGE_NAME}: develop" && docker push "${IMAGE_NAME}:develop"
74
+ script : bash scripts/deploy.sh develop
77
75
on :
78
76
branch : master
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ if [ " $1 " = " tagged" ]; then
5
+ docker tag " ${IMAGE_NAME} :${IMAGE_TAG} " " ${IMAGE_NAME} :latest"
6
+ docker tag " ${IMAGE_NAME} :${IMAGE_TAG} " " ${IMAGE_NAME} :${TRAVIS_TAG} "
7
+ docker push " ${IMAGE_NAME} :latest" && docker push " ${IMAGE_NAME} :${TRAVIS_TAG} "
8
+ elif [ " $1 " = " develop" ]; then
9
+ docker tag " ${IMAGE_NAME} :${IMAGE_TAG} " " ${IMAGE_NAME} :develop"
10
+ docker push " ${IMAGE_NAME} :develop"
11
+ fi
You can’t perform that action at this time.
0 commit comments