Skip to content

Commit

Permalink
associate to circle-ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 authored and edisinovcic committed Jun 9, 2020
1 parent 1bf13fd commit 84e3b6f
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 95 deletions.
148 changes: 58 additions & 90 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,32 @@
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
remix-ide-chrome:
aliases:
- &base-config
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers

# 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
#resource_class: xlarge
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

parallelism: 20
- &base-config-node-10
docker:
- image: circleci/node:10
#resource_class: xlarge
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
- &parallelism
parallelism: 1
version: 2
jobs:
remix-ide-chrome:
<<: *base-config
<<: *parallelism
steps:
- checkout
- run: npm install
Expand All @@ -39,22 +46,8 @@ jobs:
path: ./reports/screenshots

remix-ide-firefox:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers

# 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

parallelism: 20
<<: *base-config
<<: *parallelism
steps:
- checkout
- run: npm install
Expand All @@ -79,20 +72,7 @@ jobs:
path: ./reports/screenshots

remix-ide-run-deploy:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers

# 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
<<: *base-config

steps:
- checkout
Expand All @@ -109,22 +89,8 @@ jobs:
- store_artifacts:
path: ./reports/screenshots


deploy-remix-live:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers

# 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
<<: *base-config

steps:
- checkout
Expand All @@ -139,21 +105,18 @@ jobs:
- store_artifacts:
path: ./reports/screenshots

deploy-remix-alpha:
docker:
# specify the version you desire here
- image: circleci/node:9.11.2-browsers
publish-docker:
<<: *base-config-node-10

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
resource_class: xlarge
# documented at https://circleci.com/docs/2.0/circleci-images/
# - 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:
<<: *base-config

steps:
- checkout
Expand All @@ -172,22 +135,27 @@ workflows:
version: 2
build_all:
jobs:
- remix-ide-chrome
- remix-ide-firefox
- remix-ide-run-deploy
- deploy-remix-live:
requires:
- remix-ide-chrome
- remix-ide-firefox
- remix-ide-run-deploy
filters:
branches:
only: remix_live
- deploy-remix-alpha:
requires:
- remix-ide-chrome
- remix-ide-firefox
- remix-ide-run-deploy
filters:
branches:
only: master
# - 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
# - remix-ide-firefox
# - remix-ide-run-deploy
# filters:
# branches:
# only: remix_live
# - deploy-remix-alpha:
# requires:
# - remix-ide-chrome
# - remix-ide-firefox
# - remix-ide-run-deploy
# filters:
# branches:
# only: master
7 changes: 4 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
gist_token = <token>
account_passphrase = <passphrase>
account_password = <password>
gist_token=<token>
account_passphrase=<passphrase>
account_password=<password>
TAG=latest
9 changes: 7 additions & 2 deletions ci/build_and_publish_docker_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ set -e
# If not staging and master branch are existing
export TAG="$CIRCLE_BRANCH"

echo $TAG

docker ps

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 build -f Dockerfile.dev -t remixproject/remix-ide:$TAG .
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 84e3b6f

Please sign in to comment.