Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit fa7dc65d authored by parciak's avatar parciak
Browse files

added gitlab ci cd pipeline from datalake-agent

parent 21d0c612
Branches cicd
No related tags found
19 merge requests!25Version 0.7.2: add datetimes to response,!24Version 0.7.1: Added authorization,!23New Version: 0.7.0,!22License Update,!21Version 0.6.11,!20Version 0.6.10: Bugfix to SQLAlchemy filtering,!19Version 0.6.9: Bugfix to storage call,!180.6.8: Bugfix for broken Job queue,!17Version 0.6.7: limit parallel Jobs,!16Implemented threads instead of BackgroundTasks,!15Bugfix: Cleanup of broken JobRuns at app startup,!14Bugfix to KeyErrors when running cancelled Jobs on startup without aw-message filepaths,!13Implemented means to let queued Jobs start on app startup.,!12Version 0.6.3: queueable TOS jobs,!11Version 0.6.2,!10Added missing alembic migrations.,!9Added CI/CD dryruns to eliminate more errors prior to merging,!8Updated ci/cd pipeline yaml,!7Added persistence to database
Pipeline #145543 passed
build_image:
only:
- master
stages:
- test
- publish
build_image:
stage: test
tags:
- shell
- medic
......@@ -9,12 +11,50 @@ build_image:
before_script:
- docker info
script:
- docker build -t $CI_REGISTRY_IMAGE:latest .
publish_image:
stage: publish
tags:
- shell
- medic
- umg
only:
refs:
- master
before_script:
- docker login --username $CI_REGISTRY_USER --password $CI_REGISTRY_PASSWORD $CI_REGISTRY
- pip3 install --user pydantic
- AGENTVERSION=`python3 -c 'import tos_execute.config; print(tos_execute.config.get_version())'`
- AGENTVERSION=`python3 -c "from uploader import __version__; print(__version__.__version__)"`
script:
- docker build -t $CI_REGISTRY_IMAGE:latest .
- docker tag $CI_REGISTRY_IMAGE:latest $CI_REGISTRY_IMAGE:$AGENTVERSION
- docker push $CI_REGISTRY_IMAGE:latest
- docker push $CI_REGISTRY_IMAGE:$AGENTVERSION
publish_to_harbor:
stage: publish
tags:
- shell
- medic
- wisslan
- umg
- harbor
only:
refs:
- master
before_script:
- docker login --username marcelparciak --password $HARBOR_PUSH_TOKEN harbor.umg.eu
- AGENTVERSION=`python3 -c "from uploader import __version__; print(__version__.__version__)"`
script:
- docker build -t harbor.umg.eu/medic/$CI_PROJECT_NAME:latest .
- docker tag harbor.umg.eu/medic/$CI_PROJECT_NAME:latest harbor.umg.eu/medic/$CI_PROJECT_NAME:$AGENTVERSION
- docker push harbor.umg.eu/medic/$CI_PROJECT_NAME:latest
- docker push harbor.umg.eu/medic/$CI_PROJECT_NAME:$AGENTVERSION
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment