Skip to content

Commit

Permalink
Include the poetry-dynamic-versioning plugin in ci base image
Browse files Browse the repository at this point in the history
  • Loading branch information
mzebrak committed Sep 22, 2023
1 parent b2fca4d commit 6993dee
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitlab-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
CI_DEBUG_SERVICES: "true"
# pin to specific docker images for build repeatability
# uses registry.gitlab.syncad.com/hive/hive/ci-base-image:ubuntu22.04-6
TEST_IMAGE_TAG: "@sha256:8132802ca3b7ddba1bf78e4cc5ce1fbda6874cb029e35ae855c4cb3443e477b7"
# uses registry.gitlab.syncad.com/hive/hive/ci-base-image:ubuntu22.04-7
TEST_IMAGE_TAG: "@sha256:8f68baf07c6e581e1e8034a1447c4ff1268239fc886bfe4b02aa3f4182bf78bb"

# Versions of Python packages
PYTHON_JUNIT_XML_VERSION: "1.9"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Modify CI_IMAGE_TAG here and inside script hive/scripts/ci-helpers/build_ci_base_images.sh and run it. Then push images to registry
# To be started from cloned haf source directory.
ARG CI_REGISTRY_IMAGE=registry.gitlab.syncad.com/hive/hive/
ARG CI_IMAGE_TAG=:ubuntu22.04-6
ARG CI_IMAGE_TAG=:ubuntu22.04-7
ARG BUILD_IMAGE_TAG

FROM phusion/baseimage:jammy-1.0.1 AS runtime
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci-helpers/build_ci_base_image.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /bin/bash

REGISTRY=${1:-registry.gitlab.syncad.com/hive/hive/}
CI_IMAGE_TAG=:ubuntu22.04-6
CI_IMAGE_TAG=:ubuntu22.04-7

docker buildx build --progress=plain --target=runtime \
--build-arg CI_REGISTRY_IMAGE=$REGISTRY --build-arg CI_IMAGE_TAG=$CI_IMAGE_TAG \
Expand Down
1 change: 1 addition & 0 deletions scripts/setup_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ install_user_packages() {

curl -sSL https://install.python-poetry.org | python3 - # install poetry in an isolated environment
poetry self update 1.5.1
poetry self add "poetry-dynamic-versioning[plugin]@>=1.0.0,<2.0.0"
}

create_hived_admin_account() {
Expand Down

0 comments on commit 6993dee

Please sign in to comment.