Skip to content

Commit

Permalink
Sedr version
Browse files Browse the repository at this point in the history
  • Loading branch information
ways committed Sep 25, 2024
1 parent 0c04fee commit f53bd76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ testapi:
rules:
- if: $CI_COMMIT_TAG
script:
- VALIDATOR_IMAGE="ghcr.io/metno/sedr:0.7.4-2"
- LAST_GIT_TAG=$(git describe --tags --match="v[0-9]*" --abbrev=0)
- RELEASE_TAG="${LAST_GIT_TAG}-${CI_PIPELINE_IID}"
- RELEASE_IMAGE_NAME="${CI_REGISTRY_IMAGE}:${RELEASE_TAG}"
Expand All @@ -149,7 +150,7 @@ testapi:
- docker pull $RELEASE_IMAGE_NAME
- docker run --tty=true --detach=true --network=host $RELEASE_IMAGE_NAME --bind_host 0.0.0.0
- echo "Testing API with ghcr.io/metno/sedr"
- docker pull ghcr.io/metno/sedr
- docker run --tty=true --network=host --rm ghcr.io/metno/sedr --openapi http://localhost:5000/api --url http://localhost:5000
- docker pull $VALIDATOR_IMAGE
- docker run --tty=true --network=host --rm $VALIDATOR_IMAGE --openapi http://localhost:5000/api --url http://localhost:5000
dependencies:
- build_image
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ commands = bandit --recursive .
skip_install = true

[testenv:sedr]
; Remember to update sedr version in .gitlab-ci.yml too
ignore_outcome = true
change_dir = app
description = WIP! Start app in background, wait for startup, run sedr to validate API, kill background process based on port number.
Expand Down

0 comments on commit f53bd76

Please sign in to comment.