New test for CI/CD

parent 37b09ccd
Pipeline #5368 failed with stage
......@@ -5,11 +5,10 @@ stages:
- build
before_script:
# Authenticate to GitLab Docker Registry before executing tasks
- echo $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin registry.duniter.org
build:docker:
stage: build
script:
- docker build -t registry.duniter.org/ci/docker . # Building image from `Dockerfile`
- docker push registry.duniter.org/ci/docker # Pushing builded image to registry
\ No newline at end of file
- docker build -t registry.duniter.org/ci/docker .
- docker push registry.duniter.org/ci/docker
\ No newline at end of file
FROM docker:latest
RUN apk add --no-cache python py-pip python-dev && pip install docker-compose
\ No newline at end of file
RUN apk update && apk --no-cache add python py-pip python-dev
RUN apk --no-cache add --virtual build-dependencies libffi-dev openssl-dev build-base \
&& pip install --upgrade pip \
&& pip install docker-compose \
&& apk del build-dependencies
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