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

Update pipeline

parent 73cc0d95
Branches
No related tags found
No related merge requests found
Pipeline #58686 failed
......@@ -22,11 +22,9 @@ build-env:
test-jobs:
stage: test-jobs
script:
- source $(poetry env info --path)/bin/activate
- pytest jobs/tests/
- poetry run pytest jobs/tests/
test-tasks:
stage: test-tasks
script:
- source $(poetry env info --path)/bin/activate
- pytest tasks/tests/
\ No newline at end of file
- poetry run pytest tasks/tests/
\ No newline at end of file
......@@ -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:
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 :
......
#!/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