It references icat/doi-landing-page#7

parent 9b7ceca0
Pipeline #1600 canceled with stages
image: docker:latest
stages:
- build
- deploy
build:
stage: build
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- docker image tag "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" "$CI_REGISTRY_IMAGE:latest"
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
- docker push "$CI_REGISTRY_IMAGE:latest"
except:
- master
deploy_production:
stage: deploy
script:
- export http_proxy=http://proxy.esrf.fr:3128
- 'which ssh-agent || ( apk update && apk add openssh-client )'
- eval $(ssh-agent -s)
- echo "$SSH_DEPLOY_KEY_PROD" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- ssh -l gitlab-deploy "$DEPLOY_HOST" "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
environment:
name: production
url: http://doi.esrf.fr/
when: manual
except:
- master
RewriteEngine On
#RewriteRule "^index.html/(.*)$" "doi-landing-page/index.html?DOI=$1"
#RewriteRule "/(.*)$" "doi-landing-page/index.html?DOI=$1"
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(js)
#RewriteCond %{REQUEST_URI} !(doi-landing-page)
RewriteRule "/(.+)$" "index.html?DOI=$1" [NC,L] # Handle product requests
FROM httpd:2.4
MAINTAINER Alejandro DE MARIA <demariaa@esrf.fr>
ENV http_proxy http://proxy.esrf.fr:3128
ENV https_proxy https://proxy.esrf.fr:3128
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install apache2 -y
ADD www /var/www/html/
This diff is collapsed.
Markdown is supported
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