gitlab

Role of docker-in-docker (dind) service in gitlab ci

落爺英雄遲暮 提交于 2020-12-27 07:48:56
问题 According to the official gitlab documentation, one way to enable docker build within ci pipelines, is to make use of the dind service (in terms of gitlab-ci services). However, as it is always the case with ci jobs running on docker executors, the docker:latest image is also needed. Could someone explain: what is the difference between the docker:dind and the docker:latest images? (most importantly): why are both the service and the docker image needed (e.g. as indicated in this example,

Gitlab CI :- How to share the artifacts (apks or build) via Email in Gitlab?

拜拜、爱过 提交于 2020-12-27 05:41:04
问题 I am getting the artifacts (apks) on successful operation of pipeline in Gitlab . Is there any ways to send the artifacts (apks) on the Email address after successful operation in gitlab. Right now i need to do download artifacts manually. Is there any way to send the artifacts on Email after successfully build creation.Thanks 回答1: I think there is no way to send artifacts via email for Gitlab-CI. You can send the mail on success or failure or pipeline. Refer the same question here: Send

Gitlab CI :- How to share the artifacts (apks or build) via Email in Gitlab?

空扰寡人 提交于 2020-12-27 05:37:41
问题 I am getting the artifacts (apks) on successful operation of pipeline in Gitlab . Is there any ways to send the artifacts (apks) on the Email address after successful operation in gitlab. Right now i need to do download artifacts manually. Is there any way to send the artifacts on Email after successfully build creation.Thanks 回答1: I think there is no way to send artifacts via email for Gitlab-CI. You can send the mail on success or failure or pipeline. Refer the same question here: Send

Gitlab CI :- How to share the artifacts (apks or build) via Email in Gitlab?

谁都会走 提交于 2020-12-27 05:34:04
问题 I am getting the artifacts (apks) on successful operation of pipeline in Gitlab . Is there any ways to send the artifacts (apks) on the Email address after successful operation in gitlab. Right now i need to do download artifacts manually. Is there any way to send the artifacts on Email after successfully build creation.Thanks 回答1: I think there is no way to send artifacts via email for Gitlab-CI. You can send the mail on success or failure or pipeline. Refer the same question here: Send

Jenkins 凭证管理

耗尽温柔 提交于 2020-12-25 18:11:45
点击上方 蓝色字体 ,选择“标星公众号” 优质文章,第一时间送达 作者 | IT胖 来源 | urlify.cn/BzA3ea 66套java从入门到精通实战课程分享 许多三方网站和应用可以与Jenkins交互,如Artifact仓库,基于云的存储系统和服务等. 在Jenkins中添加/配置credentials,Pipeline项目就可以使用 credentials 与三方应用交互 Credential 类型 参考:https://jenkins.io/zh/doc/book/using/using-credentials/ Jenkins可以存储以下类型的credentials: Secret text - API token之类的token (如GitHub个人访问token) Username and password - 可以为独立的字段,也可以为冒号分隔的字符串:username:password(更多信息请参照 处理 credentials) Secret file - 保存在文件中的加密内容 SSH Username with private key - SSH 公钥/私钥对 Certificate - a PKCS#12 证书文件 和可选密码 Docker Host Certificate Authentication credentials.

黑客勒索GitHub用户:不交比特币就曝光源代码

浪尽此生 提交于 2020-12-18 08:30:48
点击上方“ 极客技术栈 ”,选择“置顶公众号” 每天凌晨00:05分准点推文 大型程序员交友网站」也被人盯上了。这次主要针对GitHub用户的攻击大约于5月2日开始,目前已有几百个账户受到影响,黑客也将勒索范围伸向了Bitbucket和GitLab等类似代码托管网站。被攻击的似乎都是密码/安全强度较弱的账户。目前我们还不清楚在这场事件中有哪些有价值的内容被窃取。 在 GitHub 上托管代码,请保护好自己的账户。近日,一名黑客入侵了大量 GitHub 账户的行动引发了人们的关注,据称他实施的攻击已经删除了很多人们托管的代码库,并以此勒索赎金以恢复信息。 这一攻击很快被人们注意到,目前至少在 GitHub 上就已波及了至少 392 个不同的用户。「为了恢复你失去的信息并让它们免于泄露,请交给我们 0.1 比特币(BTC)给账户 1ES14c7qLb5CYhLMUekctxLgc1FV2Ti9DA,并发邮件给 admin@gitsbackup.com 告知你的 Git 账户和付款凭证。」勒索信中写道。 勒索信内容,黑客扬言 10 天不交比特币就曝光你的代码。 除了 GitHub 之外,Bitbucket 和 GitLab 等类似服务也遭到了同样的攻击。几个平台官方目前均表示,黑客目前的攻击目标是那些密码简单,或者在不同平台上使用相同密码的用户。 「目前

从需求出发设计一条开源持续部署流水线

拟墨画扇 提交于 2020-12-17 04:35:07
本次实践从需求出发到部署,采用大部分开源工具链Jira+GitLab+Jenkins+Spinnaker. Jira作为需求和任务管理工具,集成GitLab实现需求与代码关联,自动创建特性分支和版本分支以及合并请求的创建。GitLab代码提交触发JenkinsCI流水线,这里CI指的是Jenkins来做构建、测试、扫描、生成镜像上传镜像操作。CD由Spinnaker对各个环境部署。 详细的内容在下面PPT:本此内容已经录制成视频教程,已经购买Jenkins实践课程的同学请耐心等待,预计两天内免费更新到课程中。欢迎更多的同学一起加入DevOps课程学习!目前还有优惠哦~ 该项目涉及到Jenkins共享库中的Gitlab接口,Jenkinsfile,SPinnaker Pipeline模板。仓库地址: https://github.com/zeyangli/devops-practice DevOps课程报名链接: https://edu.51cto.com/sd/36f6e 来源: oschina 链接: https://my.oschina.net/u/4311839/blog/4720959

GitLab

橙三吉。 提交于 2020-12-16 10:55:47
简介    Linux 安装GitLab      安装GitLab的依赖包   sudo yum install -y curl policycoreutils-python openssh-server cronie   在系统防火墙中打开HTTP和SSH访问   sudo lokkit -s http -s ssh   安装 Postfix 以发送通知邮件   sudo yum install -y postfix   sudo service postfix start   sudo chkconfig postfix on   将 gitlab-ce-8.10.2-ce.0.el6.x86_64.rpm 拷贝到/opt目录下   执行安装GitLab的rpm包   rpm -i /opt/gitlab-ce-8.10.2-ce.0.el6.x86_64.rpm   完成GitLab的重新配置   sudo gitlab-ctl reconfigure   修改GitLab的配置文件   vi /var/opt/gitlab/gitlab-rails/etc/gitlab.yml      vi /etc/gitlab/gitlab.rb      按新的配置重启服务   sudo gitlab-ctl reconfigure 配置主机连接GitLab  

How to pass the env secret variable in google app engine and gitlab CI

别说谁变了你拦得住时间么 提交于 2020-12-15 04:26:23
问题 I am using gitlab and deploying it to google app engine for my nodejs application. Google Service access is added as variable in gitlab settings SERVICE_ACCOUNT_KEY: { "type": "service_account", "project_id": "node-us", "private_key_id": "", "private_key": "", "client_email": "gitlab-demo-service-account@node-us.iam.gserviceaccount.com", "client_id": "", "auth_uri": "", "token_uri": "", "auth_provider_x509_cert_url": "", "client_x509_cert_url": "" } .gitlab-ci.yml image: node:latest cache:

官方重磅!国产统一操作系统UOS正式发布

杀马特。学长 韩版系。学妹 提交于 2020-12-14 06:20:34
来源: 统信软件 官方重磅! 统一操作系统UOS正式版面向合作伙伴发布! 统一操作系统是由统信软件开发的一款基于Linux内核的操作系统,支持龙芯、飞腾、兆芯、海光、鲲鹏等芯片平台的笔记本、台式机、一体机和工作站,以及服务器。 统一桌面操作系统以桌面应用场景为主,包含自主研发的桌面环境和近多款原创应用,能够满足用户的日常办公和娱乐需求。 统一服务器操作系统以服务器支撑服务场景为主,面向用户的业务平台提供标准化服务、虚拟化、云计算支撑,并满足未来业务拓展和容灾需求的高可用和分布式支撑。 在前期的测试版本适配过程中,统一操作系统对联想、华为、清华同方、长城、曙光等整机厂商发布的数十款终端和服务器设备进行了支持; 在软件方面,能够兼容流式、版式、电子签章厂商发布的办公应用,兼容数据库、中间件、虚拟化、云桌面、安全等厂商发布的数百种应用和业务; 在外设方面,兼容主流的打印机、扫描仪、Raid卡、HBA卡等。 除此之外,通过预装的应用商店和互联网中的软件仓库还能够获得近千款应用软件的支持,满足用户对操作系统的扩展需求。 统一桌面操作系统V20和统一服务器操作系统V20,是面向合作伙伴发布的首个正式版本。 自10月中旬发布连续发布了alpha,beta和RC版,到今天的正式版的几个月内,除了进行各种新功能、新特性和新应用开发,开发团队同时不断的对缺陷进行修复,对性能和稳定性进行了优化。