Commit 8d50638f authored by Mark Abraham's avatar Mark Abraham
Browse files

test copy certs

parent 8b914f16
Pipeline #179461 failed with stages
in 1 second
......@@ -12,10 +12,9 @@ build:
stage: build
environment: $CI_COMMIT_REF_SLUG
script:
- git clone --single-branch --branch $CI_COMMIT_REF_SLUG $REPO
- cp ./src/certs/* .
- echo 'COPY *.crt /etc/pki/ca-trust/source/anchors/' >> Dockerfile
- echo 'RUN chmod 644 /etc/pki/ca-trust/source/anchors/*.crt && update-ca-trust' >> Dockerfile
# - echo 'COPY *.crt /etc/pki/ca-trust/source/anchors/' >> Dockerfile
# - echo 'RUN chmod 644 /etc/pki/ca-trust/source/anchors/*.crt && update-ca-trust' >> Dockerfile
- docker build -t ${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG} ./src/.
- docker push ${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG}
- docker rmi ${CI_REGISTRY_IMAGE}/${CI_COMMIT_REF_SLUG}
......
......@@ -14,6 +14,9 @@ RUN yum install -y epel-release; \
WORKDIR /var/www/web_reflectivity/app
COPY ./certs/*.crt /etc/pki/ca-trust/source/anchors/
RUN chmod 644 /etc/pki/ca-trust/source/anchors/*.crt && update-ca-trust
COPY . .
RUN python3 -m pip install --upgrade pip; \
......
......@@ -249,3 +249,4 @@ try:
from local_settings import *
except:
LOCAL_SETTINGS = False
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