Commit 4599942a authored by Jonathan Schaeffer's avatar Jonathan Schaeffer

[CI] and cleanup

parent 47ca7b04
......@@ -13,9 +13,3 @@ dist/
build/
*.egg-info/
.tox/
# Ignore configurations for specific environments
eidawsauth/config.yaml
eidawsauth/configurations/*
!eidawsauth/configurations/default.py
!eidawsauth/configurations/__init__.py
image: gricad-registry.univ-grenoble-alpes.fr/kubernetes-alpes/buildah:latest
stages:
- build
- deploy
variables:
REGISTRY_LOGIN: buildah login -u gitlab-ci-token -p $CI_REGISTRY_PASSWORD
REGISTRY_LOGOUT: buildah logout
IMAGE_BUILD: buildah build-using-dockerfile --storage-driver vfs --format docker
IMAGE_PUSH: buildah push --storage-driver vfs
before_script:
- $REGISTRY_LOGIN $CI_REGISTRY
after_script:
- $REGISTRY_LOGOUT $CI_REGISTRY
build ws-dataselect: &build
tags:
- dind
stage: build
only:
- master
variables:
DOCKERFILE: Dockerfile
IMAGE_NAME: $CI_REGISTRY_IMAGE/eidawsauth:$CI_COMMIT_SHORT_SHA
script:
- $IMAGE_BUILD --file $DOCKERFILE $BUILD_ARG --tag $IMAGE_NAME .
- $IMAGE_PUSH $IMAGE_NAME $IMAGE_NAME
import os
class config():
"""
Default conifguration
"""
DEBUG=False
TESTING=False
LOGLEVEL='INFO'
ENVIRONMENT='default'
EMAIL='resif-dc@univ-grenoble-alpes.fr'
GNUPGHOMEDIR='../../tests/test_files/gpg_home'
_dbpassword = os.environ.get('DBPASS')
AUTHDBPORT=5432
AUTHDBHOST='localhost'
AUTHDBNAME='resifAuth'
AUTHDBUSER='eidawsauth'
AUTHDBPASSWORD=_dbpassword
PRIVILEGEDBHOST='localhost'
PRIVILEGEDBPORT=5432
PRIVILEGEDBNAME='resifInv-Prod'
PRIVILEGEDBUSER='eidawsauth'
PRIVILEGEDBPASSWORD=_dbpassword
EPOS_FDSN_MAP={
'/epos/alparray': {'networkcode':'Z3', 'startyear':2015, 'endyear': 2022},
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment