EOX GitLab Instance

Commit 1ecafb15 authored by Bernhard Mallinger's avatar Bernhard Mallinger
Browse files

.

parent 5ea7cbe4
Pipeline #18703 failed with stage
in 22 seconds
...@@ -5,48 +5,66 @@ stages: ...@@ -5,48 +5,66 @@ stages:
variables: variables:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
SERVICE_NAME: "vs-scheduler"
test: integration_test:
image: python:3.8-slim image: devth/helm:v3.6.3
stage: test stage: test
script: script:
- python3 setup.py install - wget https://github.com/mikefarah/yq/releases/download/v4.14.2/yq_linux_amd64.tar.gz -O - | tar xvfz - && chmod +x yq_linux_amd64
- pip3 install -r requirements-test.txt - export CI_COMMIT_TAG=0.0.1 # for testing
- pip3 install -r requirements-dev.txt - git clone git@gitlab.eox.at:vs/vs-deployment.git
- pytest --cov scheduler --cov-report term-missing - cd vs-deployment
- flake8 - git switch -c "auto-update-${SERVICE_NAME}-${CI_COMMIT_TAG}"
- mypy . - cat Chart.yaml
- ../yq_linux_amd64 eval "( .dependencies[] | select(.name == \"${SERVICE_NAME}\") | .version ) = \"${CI_COMMIT_TAG}\"" -i Chart.yaml
publish_latest: - cat Chart.yaml
image: docker:20.10.8 - helm dependency update
services: - git commit --all -m "Bump ${SERVICE_NAME} to ${CI_COMMIT_TAG}"
- docker:20.10.8-dind - git push
stage: publish
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker build -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE:latest
only:
- master
publish:
image: docker:20.10.8
services:
- docker:20.10.8-dind
stage: publish
script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
- docker build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
only:
- tags
helm: #test:
image: devth/helm:v3.6.3 # image: python:3.8-slim
stage: chart # stage: test
script: # script:
# push Helm chart # - python3 setup.py install
- "upload_filename=$(helm package ./chart | sed 's/^Successfully packaged chart and saved it to: \\(.*\\)/\\1/')" # - pip3 install -r requirements-test.txt
- curl -u $HELM_CHART_REPOSITORY_CREDENTIALS -v -X POST https://charts-public.hub.eox.at/api/charts --data-binary "@${upload_filename}" # - pip3 install -r requirements-dev.txt
only: # - pytest --cov scheduler --cov-report term-missing
- tags # - flake8
# - mypy .
#
#publish_latest:
# image: docker:20.10.8
# services:
# - docker:20.10.8-dind
# stage: publish
# script:
# - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
# - docker build -t $CI_REGISTRY_IMAGE .
# - docker push $CI_REGISTRY_IMAGE:latest
# only:
# - master
#
#publish:
# image: docker:20.10.8
# services:
# - docker:20.10.8-dind
# stage: publish
# script:
# - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" "$CI_REGISTRY"
# - docker build --cache-from $CI_REGISTRY_IMAGE:latest -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG .
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
# only:
# - tags
#
#helm:
# image: devth/helm:v3.6.3
# stage: chart
# script:
# # push Helm chart
# - "upload_filename=$(helm package ./chart | sed 's/^Successfully packaged chart and saved it to: \\(.*\\)/\\1/')"
# - curl -u $HELM_CHART_REPOSITORY_CREDENTIALS -v -X POST https://charts-public.hub.eox.at/api/charts --data-binary "@${upload_filename}"
# only:
# - tags
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