1 Star 0 Fork 22

小碼 / simple-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.gitlab-ci.yml 852 Bytes
AI 代码解读
一键复制 编辑 原始数据 按行查看 历史
variables:
VERSION: 0.0.24
REPO: docker.io
stages:
- info
- build
- publish
- clean
info-job:
stage: info
script:
- echo "Start build version $VERSION"
- export VERSION=$VERSION
- export DOCKER_USERNAME=$DOCKER_USERNAME
- export DOCKER_PASSWORD=$DOCKER_PASSWORD
- export REPO=$REPO
build-job:
stage: build
script:
- echo "Compiling the code and build docker image..."
- make docker
- echo "Compile complete."
deploy-job:
stage: publish
environment: production
script:
- echo "Publish docker images..."
- make publish-docker
- echo "Docker images successfully published."
clean-job:
stage: clean
script:
# 删除所有 none 镜像 | delete all none images
- docker images |grep none|awk '{print $3}'|xargs docker rmi
- echo "Delete all none images successfully."
1
https://gitee.com/lovema/simple-admin.git
git@gitee.com:lovema/simple-admin.git
lovema
simple-admin
simple-admin
master

搜索帮助