GithubHelp home page GithubHelp logo

gitlab-cicd-test's Introduction

gitlab-runner deploy

gitlab-runner借助于helmbazel,实现go项目的自动化构建,发布到k8s中。

项目只是为了学习,docker镜像目前推送到docker-hub中。

前置条件

gitlab-runner

找一台服务器安装gitlab-runner,并且配置好,同时对应的gitlab项目,配置好变量

这里使用到的变量

gitlab-runner

k8s

首先需要一套k8s环境

helm

需要配置好helm,这里使用的helm的v3版本,配置好helmk8s的访问,gitlab-runner所在的机器需要安装helm

bazel

通过bazel构建go项目,至于它的优点这里就不啰嗦,gitlab-runner所在的机器需要安装bazel

最后放上效果截图

test,build

gitlab-runner

deploy

gitlab-runner

gitlab-cicd-test's People

Contributors

boilingfrog avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.