You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dda-devops-build/.gitlab-ci.yml

97 lines
1.8 KiB
YAML

10 months ago
stages:
- lint&test
- upload
- image
2 years ago
10 months ago
.py: &py
3 months ago
image: "domaindrivenarchitecture/ddadevops-python:4.10.7"
10 months ago
before_script:
- export RELEASE_ARTIFACT_TOKEN=$MEISSA_REPO_BUERO_RW
10 months ago
- python --version
- pip install -r requirements.txt
10 months ago
.img: &img
3 months ago
image: "domaindrivenarchitecture/ddadevops-dind:4.10.7"
10 months ago
services:
- docker:dind
before_script:
1 year ago
- export IMAGE_DOCKERHUB_USER=$DOCKERHUB_USER
- export IMAGE_DOCKERHUB_PASSWORD=$DOCKERHUB_PASSWORD
10 months ago
- export IMAGE_TAG=$CI_COMMIT_TAG
10 months ago
.tag_only: &tag_only
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_TAG =~ /^[0-9]+\.[0-9]+\.[0-9]+$/'
2 years ago
lint:
10 months ago
<<: *py
1 year ago
stage: lint&test
2 years ago
script:
- pip install -r dev_requirements.txt
- pyb lint
1 year ago
pytest:
10 months ago
<<: *py
1 year ago
stage: lint&test
script:
- pip install -r dev_requirements.txt
- pyb test
2 years ago
pypi-stable:
10 months ago
<<: *py
10 months ago
<<: *tag_only
2 years ago
stage: upload
script:
- pyb -P version=$CI_COMMIT_TAG publish upload publish_artifacts
clj-cljs-image-publish:
10 months ago
<<: *img
<<: *tag_only
stage: image
script:
- cd infrastructure/clj-cljs && pyb image publish
clj-image-publish:
<<: *img
<<: *tag_only
stage: image
script:
- cd infrastructure/clj && pyb image publish
10 months ago
python-image-publish:
<<: *img
<<: *tag_only
stage: image
script:
- cd infrastructure/python && pyb image publish
dind-image-publish:
<<: *img
<<: *tag_only
stage: image
script:
- cd infrastructure/dind && pyb image publish
ddadevops-image-publish:
<<: *img
<<: *tag_only
stage: image
script:
10 months ago
- cd infrastructure/ddadevops && pyb image publish
kotlin-image-publish:
<<: *img
<<: *tag_only
stage: image
script:
- cd infrastructure/kotlin && pyb image publish
backup-image-publish:
<<: *img
<<: *tag_only
stage: image
script:
- cd infrastructure/backup && pyb image publish