Skip to content
Snippets Groups Projects
Verified Commit 7290ce05 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

Add manual login as gitlab-ci ignores DOCKER_AUTH_CONFIG for manual pushes

parent eb59c1e5
No related branches found
No related tags found
1 merge request!44Optimize CI and remove deployment steps, add Mattermost and update Etherpad
Pipeline #51080 passed
...@@ -33,9 +33,13 @@ stages: ...@@ -33,9 +33,13 @@ stages:
pica-ci-base: pica-ci-base:
stage: ci-base stage: ci-base
tags: [build] tags: [build]
before_script:
- echo $REGISTRY_PROD_PASSWORD | docker login $REGISTRY_PROD -u $REGISTRY_PROD_USERNAME --password-stdin
script: script:
- docker build -f pica-ci-base/Dockerfile . -t $REGISTRY_PROD/pica-ci-base:latest - docker build -f pica-ci-base/Dockerfile . -t $REGISTRY_PROD/pica-ci-base:latest
- docker push $REGISTRY_PROD/pica-ci-base:latest - docker push $REGISTRY_PROD/pica-ci-base:latest
after_script:
- docker logout $REGISTRY_PROD
only: only:
changes: changes:
- "pica-ci-base/*" - "pica-ci-base/*"
......
FROM docker:19.03.0 FROM docker:19.03.0
RUN apk update && \ RUN apk update && \
apk add build-base \ apk add build-base \
git \ git \
iproute2 \ iproute2 \
libffi-dev \ libffi-dev \
openssl-dev \ openssl-dev \
py-pip \ py-pip \
python2-dev \ python2-dev \
sed \ sed \
wget \ wget \
&& pip install docker-compose && pip install docker-compose
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