Merge branch 'cic-eth-build' into 'master'
Update .gitlab-ci.yml See merge request grassrootseconomics/cic-internal-integration!4
This commit is contained in:
commit
49f4acaa01
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
service-configs/*
|
service-configs/*
|
||||||
|
!service-configs/.gitkeep
|
||||||
|
@ -1,13 +1,7 @@
|
|||||||
variables:
|
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
|
||||||
before_script:
|
|
||||||
- git submodule sync --recursive
|
|
||||||
- git submodule update --init --recursive
|
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- local: 'ci_templates/.cic-template.yml'
|
- local: 'ci_templates/.cic-template.yml'
|
||||||
- local: 'apps/contract-migration/.gitlab-ci.yml'
|
- local: 'apps/contract-migration/.gitlab-ci.yml'
|
||||||
# - local: 'apps/cic-eth/.gitlab-ci.yml'
|
- local: 'apps/cic-eth/.gitlab-ci.yml'
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
.contract-migration-changes-target:
|
.contract-migration-changes-target:
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
- $CONTEXT/*
|
- $CONTEXT/cic-eth/*
|
||||||
|
|
||||||
build-cic-eth:
|
build-cic-eth:
|
||||||
extends:
|
extends:
|
||||||
- .contract-migration-changes-target
|
- .contract-migration-changes-target
|
||||||
- .py-build
|
- .py-build
|
||||||
variables:
|
variables:
|
||||||
CONTEXT: apps/cic-eth
|
DOCKERFILE_PATH: cic-eth/docker/Dockerfile
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
.contract-migration-changes-target:
|
.contract-migration-changes-target:
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
- $CONTEXT/*
|
- $CONTEXT/contract-migration/*
|
||||||
|
|
||||||
build-contract-migration:
|
build-contract-migration:
|
||||||
extends:
|
extends:
|
||||||
- .contract-migration-changes-target
|
- .contract-migration-changes-target
|
||||||
- .py-build
|
- .py-build
|
||||||
variables:
|
variables:
|
||||||
CONTEXT: apps/contract-migration
|
DOCKERFILE_PATH: contract-migration/docker/Dockerfile
|
||||||
|
@ -52,7 +52,7 @@ RUN apt-get update && \
|
|||||||
|
|
||||||
RUN echo installing nodejs tooling
|
RUN echo installing nodejs tooling
|
||||||
|
|
||||||
COPY ./dev/nvm.sh /root/
|
COPY contract-migration/dev/nvm.sh /root/
|
||||||
|
|
||||||
# Install nvm with node and npm
|
# Install nvm with node and npm
|
||||||
# https://stackoverflow.com/questions/25899912/how-to-install-nvm-in-docker
|
# https://stackoverflow.com/questions/25899912/how-to-install-nvm-in-docker
|
||||||
@ -141,18 +141,18 @@ RUN pip install --extra-index-url $pip_extra_index_url \
|
|||||||
crypto-dev-signer==0.4.13b9
|
crypto-dev-signer==0.4.13b9
|
||||||
|
|
||||||
|
|
||||||
COPY testdata/pgp testdata/pgp
|
COPY contract-migration/testdata/pgp testdata/pgp
|
||||||
|
|
||||||
RUN mkdir -vp /tmp/cic/pgp
|
RUN mkdir -vp /tmp/cic/pgp
|
||||||
COPY testdata/pgp/* /tmp/cic/pgp/
|
COPY contract-migration/testdata/pgp/* /tmp/cic/pgp/
|
||||||
|
|
||||||
# COPY .env_config_template .env_config_template
|
# COPY .env_config_template .env_config_template
|
||||||
# COPY .env_dockercompose_template .env_dockercompose_template
|
# COPY .env_dockercompose_template .env_dockercompose_template
|
||||||
|
|
||||||
COPY reset.sh .
|
COPY contract-migration/reset.sh .
|
||||||
# COPY data.sh data.sh
|
# COPY data.sh data.sh
|
||||||
COPY keystore keystore
|
COPY contract-migration/keystore keystore
|
||||||
COPY wait-for-it.sh .
|
COPY contract-migration/wait-for-it.sh .
|
||||||
RUN chmod +x reset.sh wait-for-it.sh
|
RUN chmod +x reset.sh wait-for-it.sh
|
||||||
|
|
||||||
LABEL version="4"
|
LABEL version="4"
|
||||||
|
@ -11,12 +11,14 @@
|
|||||||
# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4125
|
# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/4125
|
||||||
DOCKER_TLS_VERIFY: 1
|
DOCKER_TLS_VERIFY: 1
|
||||||
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
|
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
|
||||||
DOCKERFILE_PATH: docker/
|
CONTEXT: apps/
|
||||||
services:
|
services:
|
||||||
- docker:19.03.13-dind
|
- docker:19.03.13-dind
|
||||||
before_script:
|
before_script:
|
||||||
- docker info
|
- docker info
|
||||||
- cd $CONTEXT
|
- cd $CONTEXT
|
||||||
|
- pwd
|
||||||
|
- ls -la
|
||||||
script:
|
script:
|
||||||
- docker build -t $CI_PROJECT_PATH_SLUG:$CI_COMMIT_SHORT_SHA -f $DOCKERFILE_PATH .
|
- docker build -t $CI_PROJECT_PATH_SLUG:$CI_COMMIT_SHORT_SHA -f $DOCKERFILE_PATH .
|
||||||
|
|
||||||
|
@ -75,7 +75,7 @@ services:
|
|||||||
|
|
||||||
contract-migration:
|
contract-migration:
|
||||||
build:
|
build:
|
||||||
context: apps/contract-migration
|
context: apps
|
||||||
dockerfile: apps/contract-migration/docker/
|
dockerfile: apps/contract-migration/docker/
|
||||||
environment:
|
environment:
|
||||||
# ETH_PROVIDER should be broken out into host/port but cic-eth expects this
|
# ETH_PROVIDER should be broken out into host/port but cic-eth expects this
|
||||||
|
0
service-configs/.gitkeep
Normal file
0
service-configs/.gitkeep
Normal file
Loading…
Reference in New Issue
Block a user