mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
Fix .travis.yml
This commit is contained in:
parent
b1c8d6587f
commit
3d894ed250
3 changed files with 29 additions and 33 deletions
54
.travis.yml
54
.travis.yml
|
|
@ -1,7 +1,6 @@
|
||||||
sudo: required
|
sudo: required
|
||||||
language: go
|
language: go
|
||||||
go_import_path: github.com/ethereum/go-ethereum
|
go_import_path: github.com/ethereum/go-ethereum
|
||||||
services: skip
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
|
@ -54,44 +53,47 @@ jobs:
|
||||||
branch: master
|
branch: master
|
||||||
tags: true
|
tags: true
|
||||||
|
|
||||||
- stage: Build and push tomochain/tomochain image
|
- stage: Build and push untagged commit into image tomochain
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
before_install:
|
install: skip
|
||||||
|
before_script:
|
||||||
- docker build -t tomochain/tomochain .
|
- docker build -t tomochain/tomochain .
|
||||||
- docker run tomochain/tomochain
|
- docker run tomochain/tomochain
|
||||||
install: skip
|
|
||||||
script: skip
|
|
||||||
deploy:
|
|
||||||
- provider: script
|
|
||||||
script:
|
script:
|
||||||
- bash docker_push.sh latest
|
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
|
||||||
- bash docker_push.sh $TRAVIS_BUILD_ID
|
- docker tag tomochain/tomochain tomochain/tomochain:latest
|
||||||
on:
|
- docker push tomochain/tomochain:latest
|
||||||
branch: master
|
- docker tag tomochain/tomochain tomochain/tomochain:$TRAVIS_BUILD_ID
|
||||||
tags: false
|
- docker push tomochain/tomochain:$TRAVIS_BUILD_ID
|
||||||
- provider: script
|
after_success:
|
||||||
script:
|
- curl -X POST $INFRA_IMAGE_REBUILD_HOOK
|
||||||
- bash docker_push.sh latest
|
|
||||||
- bash docker_push.sh $TRAVIS_TAG
|
|
||||||
on:
|
|
||||||
branch: master
|
|
||||||
tags: true
|
|
||||||
|
|
||||||
- stage: Trigger rebuild of tomochain/infra-tomochain image
|
- stage: Build and push tagged commit into image tomochain
|
||||||
sudo: false
|
services:
|
||||||
|
- docker
|
||||||
install: skip
|
install: skip
|
||||||
script: bash docker_rebuild.sh
|
before_script:
|
||||||
|
- docker build -t tomochain/tomochain .
|
||||||
|
- docker run tomochain/tomochain
|
||||||
|
script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
|
||||||
|
- docker tag tomochain/tomochain tomochain/tomochain:latest
|
||||||
|
- docker push tomochain/tomochain:latest
|
||||||
|
- docker tag tomochain/tomochain tomochain/tomochain:$TRAVIS_TAG
|
||||||
|
- docker push tomochain/tomochain:$TRAVIS_TAG
|
||||||
|
after_success:
|
||||||
|
- curl -X POST $INFRA_IMAGE_REBUILD_HOOK
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- name: Lint
|
- name: Lint
|
||||||
- name: Build and test
|
- name: Build and test
|
||||||
- name: Github release
|
- name: Github release
|
||||||
if: type != pull_request AND branch = master AND tag = true AND repo = tomochain/tomochain
|
if: type != pull_request AND branch = master AND tag = true AND repo = tomochain/tomochain
|
||||||
- name: Build and push tomochain/tomochain image
|
- name: Build and push untagged commit into image tomochain
|
||||||
if: type != pull_request AND branch = master AND repo = tomochain/tomochain
|
if: type != pull_request AND branch = master AND tag = false AND repo = tomochain/tomochain
|
||||||
- name: Trigger rebuild of tomochain/infra-tomochain image
|
- name: Build and push tagged commit into image tomochain
|
||||||
if: type != pull_request AND branch = master AND repo = tomochain/tomochain
|
if: type != pull_request AND branch = master AND tag = true AND repo = tomochain/tomochain
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
slack:
|
slack:
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
|
|
||||||
docker tag tomochain/tomochain tomochain/tomochain:$1
|
|
||||||
docker push tomochain/tomochain:$1
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
curl -X POST $INFRA_IMAGE_REBUILD_HOOK
|
|
||||||
Loading…
Reference in a new issue