Skip to content

Commit

Permalink
[DRAFT] control-service: fine-tune the job-builder-secure
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Ivanov [email protected]
  • Loading branch information
mivanov1988 committed Jul 28, 2023
1 parent 7969600 commit c6535df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions projects/control-service/cicd/.gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,9 @@ control_service_publish_job_base_image:
- export VERSION_TAG="1.$CI_PIPELINE_ID"
- bash -ex ./publish-job-base-image.sh $PYTHON_MAJOR $PYTHON_MINOR
retry: !reference [.control_service_retry, retry_options]
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_COMMIT_BRANCH == "main"'
changes:
- projects/control-service/projects/job-base-image-secure/**/*
- projects/control-service/projects/python-image-secure/**/*
only:
refs:
- external_pull_requests

control_service_publish_job_base_image_secure_3_8:
extends: .control_service_publish_job_base_image_secure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN : \
&& yum autoremove shadow build-essential gcc glibc-devel git curl unzip -y; fi \
&& echo "Deleting system directories ..." \
&& yum install findutils -y \
&& rm -rf /boot /home /media /mnt /root /sbin /srv /var /usr/lib/ldscripts /usr/lib/rpm /usr/lib/sysimage \
&& rm -rf /boot /home /media /mnt /root /sbin /srv /usr/lib/ldscripts /usr/lib/rpm /usr/lib/sysimage \
/usr/lib/tdnf /usr/lib/perl5 /usr/lib/gcc /usr/share/locale /tmp/* /usr/include /usr/libexec /usr/sbin /usr/libexec \
&& echo "Deleting system binaries ..." \
&& python -m pip uninstall pip -y \
Expand Down

0 comments on commit c6535df

Please sign in to comment.