1 Star 0 Fork 63

陈泽 / simple-admin-core

forked from 几颗酥 / simple-admin-core 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.gitlab-ci.yml 826 Bytes
一键复制 编辑 原始数据 按行查看 历史
几颗酥 提交于 2023-04-15 08:11 . fix: optimize gitlab ci
variables:
REPO: docker.io
stages:
- info
- build
- publish
- clean
info-job:
stage: info
script:
- echo "Initialize the environment ..."
- export DOCKER_USERNAME=$DOCKER_USERNAME
- export DOCKER_PASSWORD=$DOCKER_PASSWORD
- export REPO=$REPO
build-job:
stage: build
script:
- echo "Compiling the code and build the docker image ..."
- make docker
- echo "Compilation and build are done."
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."
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/c7787504/simple-admin-core.git
git@gitee.com:c7787504/simple-admin-core.git
c7787504
simple-admin-core
simple-admin-core
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891