Skip to content
Snippets Groups Projects
Verified Commit 006b974b authored by Lars Bilke's avatar Lars Bilke
Browse files

[ci] Added manual build job.

parent dddaa761
No related branches found
No related tags found
No related merge requests found
...@@ -6,10 +6,9 @@ stages: ...@@ -6,10 +6,9 @@ stages:
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
BUILDKIT_PROGRESS: "plain" BUILDKIT_PROGRESS: "plain"
# cache: OGSCM_ARGUMENTS:
# paths: value: "compiler.py ogs.py --pm system --ogs ogs/ogs@master --cmake_args ' -DOGS_CPU_ARCHITECTURE=sandybridge -DBUILD_TESTING=OFF'"
# - .cache/pip description: "Arguments to ogscm. -B -C -R --ccache are always passed automatically. For more args see README.md!"
# - .venv/
dev images: dev images:
tags: ['docker-shell'] tags: ['docker-shell']
...@@ -17,7 +16,9 @@ dev images: ...@@ -17,7 +16,9 @@ dev images:
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
when: never when: never
- if: $CI_COMMIT_BRANCH - if: $CI_PIPELINE_SOURCE == "web"
when: never
- if: $CI_COMMIT_BRANCH == "main"
script: script:
- black --check ogscm - black --check ogscm
- poetry install - poetry install
...@@ -49,3 +50,20 @@ publish: ...@@ -49,3 +50,20 @@ publish:
- poetry install - poetry install
- poetry build - poetry build
- poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD - poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD
manual build:
tags: ['docker-shell']
stage: build
rules:
- if: $CI_PIPELINE_SOURCE != "web"
when: never
- if: $CI_COMMIT_BRANCH
script:
- poetry install
- eval poetry run ogscm -B -C -R --ccache $OGSCM_ARGUMENTS
artifacts:
paths:
- _out/images/*.sif
cache:
paths:
- .venv
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