Skip to content

Commit

Permalink
Add local build
Browse files Browse the repository at this point in the history
  • Loading branch information
mudlee committed Jul 7, 2021
1 parent f02324e commit 123b4be
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@ stages:
- build
- docker

build_local:
stage: build
image: node:12
only:
- develop
before_script:
- rm -rf dist
script:
- yarn --frozen-lockfile
- yarn build:local
cache:
paths:
- node_modules/
artifacts:
paths:
- dist/

build_testnet:
stage: build
image: node:12
Expand Down Expand Up @@ -53,6 +70,20 @@ build_mainnet:
paths:
- dist/

build_docker_local:
stage: docker
image: docker:stable
only:
- develop
before_script:
- docker info
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script:
- echo $CI_REGISTRY
- echo $CI_REGISTRY_IMAGE
- docker build -f docker/DockerFile -t $CI_REGISTRY_IMAGE:latest-local .
- docker push $CI_REGISTRY_IMAGE:latest-local

build_docker_testnet:
stage: docker
image: docker:stable
Expand Down

0 comments on commit 123b4be

Please sign in to comment.