Another attempt at running ci for scripts

This commit is contained in:
nolash 2021-04-25 11:45:32 +02:00
parent 334c63b1e6
commit 3a63d0505f
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 19 additions and 1 deletions

View File

@ -1,4 +1,16 @@
.contract_migration_scripts_variables:
variables:
APP_DIR: contract-migrations
APP_NAME: scripts
DOCKERFILE_PATH: $APP_NAME/scripts/docker/Dockerfile
.contract_migration_scripts_changes_target:
rules:
- changes:
- $CONTEXT/$APP_DIR/$APP_NAME
build-mr-import-scripts:
script:
- pip install --extra-index-url https://pip.grassrootseconomics.net:8433 -r requirements.txt
- python create_import_users.py -v -c config --gift-threshold 10000 100

View File

@ -0,0 +1,6 @@
FROM python:3.8.5-slim-buster
RUN apt-get update
RUN apt-get install -y --no-install-recommends git gcc g++ libpq-dev gawk jq telnet wget openssl iputils-ping gnupg socat bash procps make python2 cargo
RUN pip install pip
RUN pip install --extra-index-url https://pip.grassrootseconomics.net:8433 -r requirements.txt