Commit d5cf50a2 authored by Piers Harding's avatar Piers Harding 🛠️
Browse files

Merge branch 'sp-1675-car-migration' into 'master'

SP-1675 Migration of CPP build base to CAR

See merge request ska-telescope/cpp_build_base!2
parents f1be6549 006575d8
Loading
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
docs/build/*
+13 −30
Original line number Diff line number Diff line
@@ -18,39 +18,22 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307  USA

image: docker:stable
image: $SKA_K8S_TOOLS_DOCKER_BUILDER_IMAGE

variables:
  # Note that if you're using the Kubernetes executor, the variable should be set to
  # tcp://localhost:2375/ because of how the Kubernetes executor connects services
  # to the job container
  # DOCKER_HOST: tcp://localhost:2375/
  #
  # For non-Kubernetes executors, we use tcp://docker:2375/
  DOCKER_HOST: tcp://docker:2375/
  # When using dind, it's wise to use the overlayfs driver for
  # improved performance.
  DOCKER_DRIVER: overlay2
  IMAGE_NAME: cpp_build_base

services:
  - docker:dind

before_script:
  - docker login -u $DOCKER_REGISTRY_USERNAME -p $DOCKER_REGISTRY_PASSWORD $DOCKER_REGISTRY_HOST
  - docker info
  GIT_SUBMODULE_STRATEGY: recursive

stages:
- lint
- build
- publish

build_docker:
  retry: 2
  stage: build
  tags:
    - docker-executor
  script:
    - version=`cat VERSION`
    - docker build -t $DOCKER_REGISTRY_HOST/$DOCKER_REGISTRY_FOLDER/$IMAGE_NAME:$version .
    - docker tag $DOCKER_REGISTRY_HOST/$DOCKER_REGISTRY_FOLDER/$IMAGE_NAME:$version $DOCKER_REGISTRY_HOST/$DOCKER_REGISTRY_FOLDER/$IMAGE_NAME:latest
    - docker push $DOCKER_REGISTRY_HOST/$DOCKER_REGISTRY_FOLDER/$IMAGE_NAME:$version
    - docker push $DOCKER_REGISTRY_HOST/$DOCKER_REGISTRY_FOLDER/$IMAGE_NAME:latest
# Include CI templates
include:
# OCI Images - avoid the default test stage, as we don't have one
  - project: 'ska-telescope/templates-repository'
    file: 'gitlab-ci/includes/oci-image-lint.gitlab-ci.yml'
  - project: 'ska-telescope/templates-repository'
    file: 'gitlab-ci/includes/oci-image-build.gitlab-ci.yml'
  - project: 'ska-telescope/templates-repository'
    file: 'gitlab-ci/includes/oci-image-publish.gitlab-ci.yml'

.gitmodules

0 → 100644
+3 −0
Original line number Diff line number Diff line
[submodule ".make"]
	path = .make
	url = https://gitlab.com/ska-telescope/sdi/ska-cicd-makefile.git
Original line number Diff line number Diff line
Subproject commit fe00ef4c44d82a808b11ee373880cc32a4930603

.release

0 → 100644
+1 −0
Original line number Diff line number Diff line
release=0.2.0
Loading