Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit de2f9bd

Browse files
committed
Circle CI: Build docker nightly
1 parent 3c24a3a commit de2f9bd

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

circle.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ jobs:
233233
ghr -u ethereum -r cpp-ethereum $prerelease_flag $CIRCLE_TAG ~/package
234234
235235
# Builds aleth docker image and uploads it to Docker Hub.
236-
docker-aleth:
236+
docker-aleth: &docker-aleth
237237
docker:
238238
- image: circleci/golang
239239
steps:
@@ -244,21 +244,30 @@ jobs:
244244
- setup_remote_docker
245245
- run:
246246
name: "Build aleth docker image"
247-
command: docker build -t ethereum/aleth:latest -f scripts/docker/aleth.dockerfile .
247+
command: docker build -t ethereum/aleth:local -f scripts/docker/aleth.dockerfile .
248248
- run:
249249
name: "Push aleth docker image"
250250
command: |
251251
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER_ID --password-stdin
252-
docker push ethereum/aleth:latest
253-
echo "Pushed ethereum/aleth:latest"
254252
if [[ $CIRCLE_TAG =~ ^v[0-9].* ]]; then
255253
tag=${CIRCLE_TAG:1}
256-
docker tag ethereum/aleth:latest ethereum/aleth:$tag
254+
docker tag ethereum/aleth:local ethereum/aleth:$tag
257255
docker push ethereum/aleth:$tag
258256
echo "Pushed ethereum/aleth:$tag"
259257
fi
258+
if [[ $NIGHTLY ]]; then
259+
docker tag ethereum/aleth:local ethereum/aleth:nightly
260+
docker push ethereum/aleth:nightly
261+
echo "Pushed ethereum/aleth:nightly"
262+
fi
260263
echo "See https://hub.docker.com/r/ethereum/aleth/tags/"
261264
265+
docker-aleth-nightly:
266+
<<: *docker-aleth
267+
environment:
268+
NIGHTLY: true
269+
270+
262271
workflows:
263272
version: 2
264273

@@ -309,3 +318,6 @@ workflows:
309318
- master
310319
jobs:
311320
- linux-gcc6-nightly
321+
- docker-aleth-nightly:
322+
requires:
323+
- linux-gcc6-nightly

0 commit comments

Comments
 (0)