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

Commit d5fb9f3

Browse files
committed
Circle CI: Push docker images
1 parent 8ed0a05 commit d5fb9f3

File tree

1 file changed

+48
-20
lines changed

1 file changed

+48
-20
lines changed

circle.yml

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,20 @@ jobs:
240240
- setup_remote_docker
241241
- run:
242242
name: "Build aleth docker image"
243-
command: docker build -t ethereum/aleth -f scripts/docker/aleth.dockerfile .
243+
command: docker build -t ethereum/aleth:latest -f scripts/docker/aleth.dockerfile .
244+
- run:
245+
name: "Push aleth docker image"
246+
command: |
247+
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USER_ID --password-stdin
248+
docker push ethereum/aleth:latest
249+
echo "Pushed ethereum/aleth:latest"
250+
if [[ $CIRCLE_TAG =~ ^v.* ]]; then
251+
tag=${CIRCLE_TAG:1}
252+
docker tag ethereum/aleth:latest ethereum/aleth:$tag
253+
docker push ethereum/aleth:$tag
254+
echo "Pushed ethereum/aleth:$tag"
255+
fi
256+
echo "See https://hub.docker.com/r/ethereum/aleth/tags/"
244257
245258
# TODO: Run GCC6 build only in develop branch.
246259
# TODO: Enabled nightly builds and add more configs.
@@ -249,22 +262,37 @@ workflows:
249262
version: 2
250263
aleth:
251264
jobs:
252-
- docker-aleth
253-
# - macos-xcode90:
254-
# filters:
255-
# tags:
256-
# only: /.*/
257-
# - linux-clang6:
258-
# filters:
259-
# tags:
260-
# only: /.*/
261-
# - linux-gcc6
262-
# - deploy:
263-
# requires:
264-
# - macos-xcode90
265-
# - linux-clang6
266-
# filters:
267-
# branches:
268-
# ignore: /.*/
269-
# tags:
270-
# only: /^v.*/
265+
- macos-xcode90:
266+
filters:
267+
tags:
268+
only: /.*/
269+
- linux-clang6:
270+
filters:
271+
tags:
272+
only: /.*/
273+
- linux-gcc6:
274+
filters:
275+
tags:
276+
only: /.*/
277+
278+
- deploy:
279+
requires:
280+
- macos-xcode90
281+
- linux-clang6
282+
- linux-gcc6
283+
filters:
284+
branches:
285+
ignore: /.*/
286+
tags:
287+
only: /^v.*/
288+
289+
- docker-aleth:
290+
requires:
291+
- macos-xcode90
292+
- linux-clang6
293+
- linux-gcc6
294+
filters:
295+
branches:
296+
only: develop
297+
tags:
298+
only: /.*/

0 commit comments

Comments
 (0)