1 Star 0 Fork 61

itmrliu / simple-admin-core

forked from 几颗酥 / simple-admin-core 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.gitlab-ci.yml 852 Bytes
一键复制 编辑 原始数据 按行查看 历史
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."
Go
1
https://gitee.com/itmrliu/simple-admin-core.git
git@gitee.com:itmrliu/simple-admin-core.git
itmrliu
simple-admin-core
simple-admin-core
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891