我们在私有专用服务器上托管了Gitlab,该服务器只能通过L2TP VPN隧道访问。对于内部网络中的主机,域的DNS设置为IP,因此如果没有VPN,显然是无法访问的。问题是,当触发Gitlab CI/CD时,作业中出现错误,日志如下: Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/web/XXX/.git/
fatal: unable to access 'https://<our domain>/web/XXX.git/'
这个以前做过的工作!
我在管道中的部署步骤SSH在一个DO框上&从一个码头注册中心提取代码。如前所述,这在以前起了作用&这是我在.gitlab-ci.yml中的.gitlab-ci.yml步骤,它从Using SSH下的那里得到了很好的灵感。
deploy:
stage: deploy
image: docker:stable-dind
only:
- master
services:
# Specifying the DinD version here as the latest DinD version introduced a timeou
我正在寻找一种方法,以清理后,一个工作已取消在GitLab的跑步者。原因是我们经常不得不取消正在运行的作业,因为运行程序有时会被困在测试管道中,我可以想象一些其他的场景,您可能想要取消一个作业,然后运行一个干净的脚本。我正在寻找类似after_script的东西,但就在一份工作被取消的时候。我检查了,但找不到我需要的东西。
我的gitlab-ci.yaml的下面部分显示了我希望在作业被取消时调用docker-compose down来优雅地取消测试阶段。
我用的是一个gitlab跑步者。而且,我不使用dind。
test_stage:
stage: test
only:
- mas
我们使用Gitlab CI/CD进行构建过程。最近,我们开始遇到错误消息:
ERROR: Job failed (system failure): prepare environment: image pull failed: rpc error: code = Unknown desc = Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://w
我使用GitLab ci作为我的CI/CD工具。我正在部署用于云运行的dockerized应用程序,但我无法访问在云运行中声明的环境变量。谢谢!
Dockerfile
# build environment
FROM node:8-alpine as react-build
WORKDIR /app
COPY . ./
RUN npm install
RUN npm run build
# server environment
FROM nginx: alpine
COPY nginx.conf /etc/nginx/conf.d/configfile.template
COPY --
我最近创建了一个新的gitlab项目,它承载了一个dockerfile。我想使用Gitlab CI/CD来构建dockerfile。
虽然我已经在另一个项目中使用了CI/CD,但这个项目不起作用。
尽管存在.yml文件,gitlab在概述中显示“设置CI”链接,管道窗口只显示“开始使用管道”链接,作业窗口显示“没有要显示的作业”。
My ..gitlab ci.yml文件:
image: docker:stable
variables:
# When using dind service we need to instruct docker, to talk with the
#