Merge branch '3-publish-docker-image' into 'main'
Resolve "Publish docker image" Closes #3 See merge request hectorjsmith/fail2ban-prometheus-exporter!11
This commit is contained in:
commit
51fa607c28
1 changed files with 17 additions and 0 deletions
|
@ -35,3 +35,20 @@ build:
|
||||||
- dist/*.tar.gz
|
- dist/*.tar.gz
|
||||||
- dist/checksums.txt
|
- dist/checksums.txt
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
|
|
||||||
|
docker-gitlab:
|
||||||
|
stage: build
|
||||||
|
only:
|
||||||
|
- main
|
||||||
|
- tags
|
||||||
|
image: docker:stable
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
before_script:
|
||||||
|
- apk add git
|
||||||
|
- apk add make
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
script:
|
||||||
|
- make docker/build-latest
|
||||||
|
- make docker/build-tag
|
||||||
|
- docker push registry.gitlab.com/hectorjsmith/fail2ban-prometheus-exporter
|
||||||
|
|
Loading…
Reference in a new issue