Commit f695b7af authored by EKbfh's avatar EKbfh 🐼
Browse files

upload only on master

parent 55ce7a80
......@@ -10,6 +10,26 @@ variables:
COMPILE_FLAGS_DEB: "--with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions"
COMPILE_FLAGS_RPM: "--with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions"
# RedHat Family
compile_RedHat:
extends: .base_compile
image: centos:7
script:
- mkdir -p /opt/python$PYTHON_VERSION_3_8
- >
yum update -y -q && yum install -y -q
curl make
gcc openssl-devel bzip2-devel libffi-devel sqlite-devel cmake
gdbm-devel xz-devel readline-devel ncurses-devel zlib-devel
- curl -o /tmp/python.tar.gz https://www.python.org/ftp/python/$PYTHON_VERSION_3_8/Python-$PYTHON_VERSION_3_8.tgz
- tar -zxf /tmp/python.tar.gz -C /opt
- cd /opt/Python-$PYTHON_VERSION_3_8
- ./configure --prefix=/opt/python$PYTHON_VERSION_3_8 --enable-optimizations $COMPILE_FLAGS_RPM
- make -s
- make install
- /opt/python$PYTHON_VERSION_3_8/bin/python3 -V || true
- tar czf "${CI_PROJECT_DIR}/python${PYTHON_VERSION_3_8}.tar.gz" -C /opt/python$PYTHON_VERSION_3_8/ .
.base_compile:
stage: compile
image: debian:10
......@@ -58,26 +78,6 @@ compile_Ubuntu_20:
extends: .base_compile
image: ubuntu:20.04
# RedHat Family
compile_RedHat:
extends: .base_compile
image: centos:7
script:
- mkdir -p /opt/python$PYTHON_VERSION_3_8
- >
yum update -y -q && yum install -y -q
curl make
gcc openssl-devel bzip2-devel libffi-devel sqlite-devel cmake
gdbm-devel xz-devel readline-devel ncurses-devel zlib-devel
- curl -o /tmp/python.tar.gz https://www.python.org/ftp/python/$PYTHON_VERSION_3_8/Python-$PYTHON_VERSION_3_8.tgz
- tar -zxf /tmp/python.tar.gz -C /opt
- cd /opt/Python-$PYTHON_VERSION_3_8
- ./configure --prefix=/opt/python$PYTHON_VERSION_3_8 --enable-optimizations $COMPILE_FLAGS_RPM
- make
- make install
- /opt/python$PYTHON_VERSION_3_8/bin/python3 -V || true
- tar czf "${CI_PROJECT_DIR}/python${PYTHON_VERSION_3_8}.tar.gz" -C /opt/python$PYTHON_VERSION_3_8/ .
.base_upload:
stage: upload
image: registry.getnoc.com/infrastructure/s3helper:master
......@@ -85,6 +85,9 @@ compile_RedHat:
- sha1sum python${PYTHON_VERSION_3_8}.tar.gz | awk '{ print $1 }' > python${PYTHON_VERSION_3_8}.tar.gz_SHA1SUMS
tags:
- docker
rules:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: always
upload_RedHat:
extends: .base_upload
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment