add build and push to registry
This commit is contained in:
@@ -5,9 +5,12 @@ when:
|
|||||||
- event: manual
|
- event: manual
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: notify
|
- name: build
|
||||||
image: alpine
|
image: docker
|
||||||
commands:
|
commands:
|
||||||
- echo === sysmonstm ===
|
- echo === Building sysmonstm ===
|
||||||
- echo $CI_COMMIT_BRANCH
|
- docker build -t registry:5000/sysmonstm:latest -f ctrl/standalone/Dockerfile ctrl/standalone/
|
||||||
- echo $CI_COMMIT_SHA
|
- docker push registry:5000/sysmonstm:latest
|
||||||
|
- echo === Done ===
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|||||||
Reference in New Issue
Block a user