admin 管理员组文章数量: 887021
2023年12月23日发(作者:各种边框的画法)
package: image: maven:3-jdk-8 stage: package script: - 'mvn $MAVEN_CLI_OPTS package' artifacts: paths: - target/*.jar
build-sit: stage: build tags: - common only: - dev image: /public/docker-with-awscli:latest script: - eval $(aws ecr get-login --no-include-email --region cn-northwest-1) - docker build -t $IMAGE_NAME:sit . - docker push $IMAGE_NAME:sit variables: AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} AWS_DEFAULT_REGION: ${AWS_REGION} AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}build-beta: stage: build tags: - common only: - master image: /public/docker-with-awscli:latest script: - eval $(aws ecr get-login --no-include-email --region cn-northwest-1) - docker build -t $IMAGE_NAME:beta . - docker push $IMAGE_NAME:beta variables: AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} AWS_DEFAULT_REGION: ${AWS_REGION} AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}build-prod: image: /public/docker-with-awscli:latest tags: - common stage: build only: - tags script: - eval $(aws ecr get-login --no-include-email --region cn-northwest-1) - docker pull $IMAGE_NAME:beta - docker tag $IMAGE_NAME:beta $IMAGE_NAME:$CI_COMMIT_TAG - docker push $IMAGE_NAME:$CI_COMMIT_TAG variables: AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} AWS_DEFAULT_REGION: ${AWS_REGION} AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}deploy: image: name: 123/k8s-kubectl:v1.14.4
版权声明:本文标题:持续集成---自动化部署gitlab的cicd简介和在服务器中部署使用 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1703262686h444574.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论