15 lines
572 B
YAML
15 lines
572 B
YAML
steps:
|
|
build:
|
|
image: git-cf.zhaozuohong.vip/zhao/docker-docker
|
|
commands:
|
|
- docker build . --rm -t git-cf.zhaozuohong.vip/zhao/docker-hugo-ext
|
|
- docker login -u $${REGISTRY_USERNAME} -p $${REGISTRY_PASSWORD} git-cf.zhaozuohong.vip
|
|
- docker push git-cf.zhaozuohong.vip/zhao/docker-hugo-ext
|
|
- docker rmi git-cf.zhaozuohong.vip/zhao/docker-hugo-ext
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
environment:
|
|
REGISTRY_USERNAME:
|
|
from_secret: registry_username
|
|
REGISTRY_PASSWORD:
|
|
from_secret: registry_password
|