Skip to content
Snippets Groups Projects
Commit d35b56ec authored by nguyed99's avatar nguyed99
Browse files

Update pipeline

parent 73cc0d95
No related branches found
No related tags found
No related merge requests found
Pipeline #58686 failed
...@@ -22,11 +22,9 @@ build-env: ...@@ -22,11 +22,9 @@ build-env:
test-jobs: test-jobs:
stage: test-jobs stage: test-jobs
script: script:
- source $(poetry env info --path)/bin/activate - poetry run pytest jobs/tests/
- pytest jobs/tests/
test-tasks: test-tasks:
stage: test-tasks stage: test-tasks
script: script:
- source $(poetry env info --path)/bin/activate - poetry run pytest tasks/tests/
- pytest tasks/tests/ \ No newline at end of file
\ No newline at end of file
...@@ -35,7 +35,7 @@ All folders are isolated projects. `cd` into the folder to run/build them. ...@@ -35,7 +35,7 @@ All folders are isolated projects. `cd` into the folder to run/build them.
Jobs and tasks are run inside of docker containers. There is a docker build script (`Dockerfile`) and can be run in `dev` mode via `docker run`. Please be aware it can take a while to build the initial image. At root directory, to build the image run: Jobs and tasks are run inside of docker containers. There is a docker build script (`Dockerfile`) and can be run in `dev` mode via `docker run`. Please be aware it can take a while to build the initial image. At root directory, to build the image run:
bash build/build_image_local.sh bash build/build-image.sh
The image is built now and ready to be used! The tests in the Docker container built from the image can be sanity-checked via : The image is built now and ready to be used! The tests in the Docker container built from the image can be sanity-checked via :
......
#!/bin/bash
set -e
CWD=$(cd $(dirname $0); pwd)
REGISTRY=git.imp.fu-berlin.de:5000/nguyed99/comp-sci-project
IMAGE=${REGISTRY}/jobs-n-tasks:${RELEASE:-CI}
BASE_VERSION="3.11.5-slim"
echo Building $IMAGE
docker build \
--force-rm \
--rm=true \
-f "$CWD/Dockerfile" \
--platform linux/amd64 \
--build-arg BASE_VERSION=$BASE_VERSION \
-t $IMAGE \
"$CWD/.."
docker push $IMAGE
\ No newline at end of file
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment