Commit 3cdf7ef2 authored by Ciarán Ó Rourke's avatar Ciarán Ó Rourke
Browse files

Set CI up to build dependencies and push image to Dockerhub. Only works

locally due to runner permissions.

Change log:
* build image from Dockerfile
* upload to Dockerhub on success
parent 8b872a1c
Pipeline #1324 skipped
image: docker:stable
image: docker:18
services:
- docker:dind
- docker:18-dind
stages:
- build
variables:
DOCKER_HOST: tcp://docker:2375
before_script:
- docker info
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
Build image:
tags:
- docker
stage: build
script:
- docker build -t superfiphoboserver:debian -f ./tools/ci.Dockerfile .
- docker build -t superfiphoboserver:debian -f ci.Dockerfile .
- docker tag superfiphoboserver:debian ciaranorourke/fiphoboserver:debian
- docker push ciaranorourke/fiphoboserver:debian
......@@ -6,7 +6,7 @@ RUN apt-get -y update && apt-get -y upgrade
RUN apt-get -y install git cmake sudo wget curl python3-pip \
man clang-tidy clang-format doxygen
COPY .. /home/superfiphoboserver
COPY . /home/superfiphoboserver
RUN /home/superfiphoboserver/tools/build_phobos.sh -c
RUN /home/superfiphoboserver/tools/build_proxygen.sh
RUN /home/superfiphoboserver/tools/install_catch2.sh
......
Supports Markdown
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