Skip to content
Snippets Groups Projects
Commit 3ba54169 authored by Ling Zhu's avatar Ling Zhu
Browse files

Add CI

parent 63c946c5
No related branches found
No related tags found
No related merge requests found
Pipeline #33371 failed
# This pipeline is to build a image with kubectl and helm enabled
stages:
- build
variables:
CONTAINER_IMAGE: gitlab-registry.eps.surrey.ac.uk/noc/kubectl
CONTAINER_TAG: helm
build:
image:
name: docker:19
services:
- name: docker:19-dind
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
stage: build
tags:
- noc-group-24-44
script:
- docker login -u noc -p yDXtzxsCdG9mBG1KF2Ef gitlab-registry.eps.surrey.ac.uk
- docker build -t ${CONTAINER_IMAGE} .
- docker tag ${CONTAINER_IMAGE} ${CONTAINER_IMAGE}:${CONTAINER_TAG}
- docker push ${CONTAINER_IMAGE}:${CONTAINER_TAG}
FROM gitlab-registry.eps.surrey.ac.uk/noc/kubectl:latest
WORKDIR /usr/local/bin
COPY ./helm .
#EXPOSE 9801
#CMD ["/usr/bin/dcc"]
File added
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