Commit b896543a authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'fix/add-git-to-image' into 'main'

Fix container image

See merge request to-be-continuous/tools/gitlab-cp!8
parents 7c30600e 09b84353
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -27,8 +27,10 @@ py-release:
    - when: never

dry-run-test:
  extends: .python-base
  stage: test
  image:
    name: "$DOCKER_SNAPSHOT_IMAGE"
    entrypoint: [""]
  stage: package-test
  variables:
    SRC_GITLAB_API: https://gitlab.com/api/v4
    SRC_SYNC_PATH: to-be-continuous
@@ -38,8 +40,7 @@ dry-run-test:
    EXCLUDE: samples
    # DEST_TOKEN is declared as a project secret variable
  script:
    - install_requirements
    - poetry run gitlab-cp --dry-run
    - gitlab-cp --dry-run
  rules:
    # run only on original project on gitlab.com
    - if: '$CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "to-be-continuous/tools/gitlab-cp"'
+2 −0
Original line number Diff line number Diff line
@@ -4,7 +4,9 @@ WORKDIR /code

COPY ./dist/*.whl /code/

# hadolint ignore=DL3018
RUN apk upgrade --no-cache \
    && apk add git --no-cache \
    && pip install --no-cache-dir /code/*.whl

ENTRYPOINT [ "gitlab-cp" ]