gitlab-ci 相关问题

来自gitlab的持续集成服务器。


我使用此命令来设置我的Maven项目(

mvn build-helper:parse-version versions:set \ -DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.nextMinorVersion}.\${parsedVersion.incrementalVersion}\${parsedVersion.qualifier?}

回答 0 投票 0





gitlab ci部署失败:“ bash:pm2:找不到命令” gitlab-ci.ymlrun

image: node:latest stages: - build - test - deploy cache: paths: - node_modules/ - .next/ install_dependencies: stage: build script: - npm install - npm run build artifacts: paths: - node_modules/ - .next/ test-build: stage: test script: - npm run test deploy_production: stage: deploy only: - master before_script: - "which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )" - mkdir -p ~/.ssh - eval $(ssh-agent -s) - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' - ssh-add <(echo "$SSH_PRIVATE_KEY") - apt-get update -y - apt-get -y install rsync script: - ssh -p22 [email protected] "mkdir -p /var/www/example.com/index_tmp" - rsync -rav -e ssh --exclude='.git/' --exclude='.gitlab-ci.yml' --delete-excluded ./ [email protected]:/var/www/example.com/index_tmp - ssh -p22 [email protected] "mv /var/www/example.com/index /var/www/example.com/index_old && mv /var/www/example.com/index_tmp /var/www/example.com/index" - ssh -p22 [email protected] "rm -rf /var/www/example.com/index_old" - ssh -p22 [email protected] "pm2 restart landing-page"

回答 2 投票 0

如何从gitlab ci/cd

在GitLab的CI/CD管道中,我想从AWS Secret Manager检索该秘密,并将其分配给变量数据库_Connection。跑步者可以访问AWS SM,我想使用AWS CLI T ...

回答 1 投票 0

GitlabCI:如何将变量从gitlab ci/cd传递到ssh并在远程卷曲命令中使用?

我正在运行gitlab ci/cd管道,该管道通过SSH连接到远程服务器,并使用卷发将消息发送到电报机器人。该消息存储在变量中,应将其传递给远程服务器。但是,当卷发在远程计算机上执行时,该消息似乎是空的。

回答 1 投票 0

使用ci_job_token从gitlab 17.8.4升级到17.9.1

工作是工作的相关部分:

回答 0 投票 0






回答 0 投票 0

使用“ SH:7:语法错误:使用自定义Docker image”时,gitlab ci/cd管道失败 我正在使用包含Terraform,Terragrunt和AWS CLI的自定义Docker映像运行GitLab CI/CD管道。但是,管道在第一阶段失败,并出现以下错误: 执行...

Executing "step_script" stage of the job script 00:01 Using docker image sha256:e1589e57615ab7e4c9ffe424070fef53c53c17a040de2c5ee858fff319753f2a for registry.gitlab.com/image-path:terragrunt-latest with digest registry.gitlab.com/image-path@sha256:0d5c661e1dce3f543af65966daa947a9e3878316b95464cbb3c3187d19e01d40 ... sh: 7: Syntax error: "do" unexpected Cleaning up project directory and file based variables 00:01 ERROR: Job failed: exit code 2

回答 1 投票 0



gitlab-runner环境变量隐藏了不起作用的白色空间修补装修

当我配置gitlab env变量renovate_git_private_key时,我想将其配置为掩盖和隐藏,所以我删除了空格和换行符,--------------------------------------------------- ...

回答 1 投票 0

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.