This repository was archived by the owner on Jul 12, 2022. It is now read-only.
Commit 1e62027 1 parent 517ac2a commit 1e62027 Copy full SHA for 1e62027
File tree 2 files changed +7
-9
lines changed
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ cache: cargo
9
9
env :
10
10
global :
11
11
- RUST_BACKTRACE=1
12
+ - IMAGE_NAME="chainsafe/chainbridge-substrate-chain"
12
13
13
14
before_install :
14
15
- df -h
@@ -18,14 +19,14 @@ jobs:
18
19
- stage : " Build"
19
20
name : Build (WASM and native)
20
21
script :
21
- - RUST_TOOLCHAIN=nightly-2020-08-16 TARGET= build-client travis_wait 180 ./scripts/ci.sh
22
+ - travis_wait 180 docker build -t $IMAGE_NAME:latest .
22
23
deploy :
23
24
- provider : script
24
- script : TARGET=default travis_wait 180 ./scripts/ci_docker.sh
25
+ script : TARGET=default ./scripts/ci_docker.sh
25
26
on :
26
27
branch : master
27
28
- provider : script
28
- script : TAG=$TRAVIS_TAG TARGET=release travis_wait 180 ./scripts/ci_docker.sh
29
+ script : TAG=$TRAVIS_TAG TARGET=release ./scripts/ci_docker.sh
29
30
on :
30
31
tags : true
31
32
Original file line number Diff line number Diff line change @@ -8,18 +8,15 @@ TAG=${TAG:-"${TIMESTAMP}-${GIT_SHORT_COMMIT}"}
8
8
9
9
case $TARGET in
10
10
" default" )
11
- echo " Pushing image with tags \" latest\" and \" $TAG \" "
12
- docker build $BUILD_ARGS -t ${IMAGE_NAME} :${TAG} .
13
- docker tag " ${IMAGE_NAME} :${TAG} " " ${IMAGE_NAME} :latest"
11
+ echo " Pushing image with tag $TAG "
12
+ docker tag ${IMAGE_NAME} :latest ${IMAGE_NAME} :${TAG}
14
13
echo " $DOCKER_PASSWORD " | docker login -u " $DOCKER_USERNAME " --password-stdin
15
- docker push ${IMAGE_NAME} :latest
16
14
docker push ${IMAGE_NAME} :${TAG}
17
15
;;
18
16
19
17
" release" )
20
18
echo " Pushing image with tag $TAG "
21
- docker build $BUILD_ARGS -t ${IMAGE_NAME} :${TAG} .
22
- docker tag " ${IMAGE_NAME} :${TAG} "
19
+ docker tag ${IMAGE_NAME} :latest ${IMAGE_NAME} :${TAG}
23
20
echo " $DOCKER_PASSWORD " | docker login -u " $DOCKER_USERNAME " --password-stdin
24
21
docker push ${IMAGE_NAME} :${TAG}
25
22
;;
You can’t perform that action at this time.
0 commit comments