Skip to content
Snippets Groups Projects
Commit 325a05f6 authored by lcappelli's avatar lcappelli
Browse files

Simplify CI && remove test

parent d33c3def
No related branches found
No related tags found
No related merge requests found
stages:
- build-ngx
- build-rpm
- build-voms
- docker-build-ngx
build-ngx-httpg-rpm:
stage: build-ngx
build-all-rpm:
stage: build-rpm
image: centos:7
script:
- env | sort
- sh docker/library-scripts/provide-deps.sh
- sh rpm/build-httpg-nginx-rpm.sh
- cd ${CI_PROJECT_DIR} && mkdir ngx-artifacts
- cp ~/rpmbuild/SRPMS/* ngx-artifacts/
- cp ~/rpmbuild/RPMS/x86_64/* ngx-artifacts/
artifacts:
paths:
- ngx-artifacts/
build-voms-rpm:
stage: build-voms
image: centos:7
script:
- env | sort
- sh docker/library-scripts/provide-deps.sh
- cd ${CI_PROJECT_DIR} && mkdir artifacts
- cp ~/rpmbuild/SRPMS/* artifacts/
- cp ~/rpmbuild/RPMS/x86_64/* artifacts/
- rm -rf ~/rpmbuild/
- sh rpm/build-voms-rpm.sh
- cd ${CI_PROJECT_DIR} && mkdir voms-artifacts
- cp ~/rpmbuild/SRPMS/* voms-artifacts/
- cp ~/rpmbuild/RPMS/x86_64/* voms-artifacts/
- cp ~/rpmbuild/SRPMS/* artifacts/
- cp ~/rpmbuild/RPMS/x86_64/* vartifacts/
artifacts:
paths:
- voms-artifacts/
- artifacts/
build-ngx-httpg-container:
stage: docker-build-ngx
......@@ -39,8 +29,7 @@ build-ngx-httpg-container:
- name: docker:dind
command: ["--tls=false"]
dependencies:
- build-ngx-httpg-rpm
- build-voms-rpm
- build-all-rpm
script:
- apk add git bash
- git clone https://baltig.infn.it/mw-devel/helper-scripts.git helper-scripts
......
......@@ -29,8 +29,3 @@ RUN rpm -ivh /pkgs/nginx-1.22.1-1.el7.ngx.x86_64.rpm && \
# install njs and voms dynamic modules
# RUN yum install -y nginx-module-njs && \
# rpm -ivh /pkgs/nginx-module-http-voms-1.22.1-1.el7.x86_64.rpm
# import test
COPY t /home/nginx/t
COPY test-ngx-voms.sh /home/nginx/
RUN sudo chown -R nginx:nginx /home/nginx/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment