Skip to content

Commit b84dadb

Browse files
author
Ruben van Vreeland
committed
Push to Docker Hub
1 parent 5a20499 commit b84dadb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.gitlab-ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,34 @@ deploy:docker:snapshot:
8989
tags:
9090
- docker
9191

92+
deploy:docker-hub:
93+
stage: deploy
94+
script:
95+
- docker info
96+
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
97+
- docker build -t elastalert .
98+
- docker tag elastalert bitsensor/elastalert:latest
99+
- docker tag elastalert bitsensor/elastalert:$(git describe --abbrev=0)
100+
- docker push bitsensor/elastalert:latest
101+
- docker push bitsensor/elastalert:$(git describe --abbrev=0)
102+
only:
103+
- tags
104+
tags:
105+
- docker
106+
107+
deploy:docker-hub:snapshot:
108+
stage: deploy
109+
script:
110+
- docker info
111+
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
112+
- docker build -t elastalert .
113+
- docker tag elastalert bitsensor/elastalert:snapshot
114+
- docker push bitsensor/elastalert:snapshot
115+
only:
116+
- develop
117+
tags:
118+
- docker
119+
92120
mirror:github:
93121
stage: mirror
94122
script:

0 commit comments

Comments
 (0)