Skip to content

Commit

Permalink
Updating cirleci config to add docker to docker hub for remix
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 authored and edisinovcic committed Jun 10, 2020
1 parent 1bf13fd commit f52aa90
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 5 deletions.
28 changes: 28 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,29 @@ jobs:
- store_artifacts:
path: ./reports/screenshots

publish-docker:
docker:
# specify the version you desire here
- image: circleci/node:10.19.0-buster

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
resource_class: xlarge
# - image: circleci/mongo:3.4.4
environment:
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
- COMMIT_AUTHOR: "Circle CI"
- FILES_TO_PACKAGE: "assets background.js build icon.png index.html manifest.json README.md soljson.js package.json"
working_directory: ~/remix-ide

steps:
- checkout
- setup_remote_docker
- run: ./ci/build_and_publish_docker_images.sh
- store_artifacts:
path: ./reports/screenshots

deploy-remix-alpha:
docker:
# specify the version you desire here
Expand Down Expand Up @@ -175,6 +198,11 @@ workflows:
- remix-ide-chrome
- remix-ide-firefox
- remix-ide-run-deploy
- publish-docker:
requires:
- remix-ide-chrome
- remix-ide-firefox
- remix-ide-run-deploy
- deploy-remix-live:
requires:
- remix-ide-chrome
Expand Down
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
gist_token = <token>
account_passphrase = <passphrase>
account_password = <password>
gist_token=<token>
account_passphrase=<passphrase>
account_password=<password>
4 changes: 2 additions & 2 deletions ci/build_and_publish_docker_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ set -e
export TAG="$CIRCLE_BRANCH"

docker login --username $DOCKER_USER --password $DOCKER_PASS
docker build -f Dockerfile -t remixproject/remix-ide:$TAG
docker push remixproject/remix-ide:$TAG
docker-compose build
docker push remixproject/remix-ide:$TAG
18 changes: 18 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: "3.7"
x-project-base:
&project-base
restart: always
networks:
- remixide

networks:
remixide:

services:
remixide:
<<: *project-base
image: remixproject/remix-ide:$TAG
container_name: remixide-${TAG}
build:
context: .
dockerfile: Dockerfile.dev

0 comments on commit f52aa90

Please sign in to comment.