mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-06 09:47:54 +00:00
[infra] automatically publish new images
This tags new images every commit (via Travis) as latest, and every tag gets pushed as a separate tag as well.
This commit is contained in:
parent
61b071c186
commit
0823aebc72
2 changed files with 12 additions and 0 deletions
6
.travis-deploy.sh
Executable file
6
.travis-deploy.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
|
||||
docker push directxman12/k8s-prometheus-provider:latest
|
||||
if [[ -n $TRAVIS_TAG ]]; then
|
||||
docker push directxman12/k8s-prometheus-provider:$TRAVIS_TAG
|
||||
fi
|
||||
|
|
@ -21,3 +21,9 @@ script: make verify
|
|||
cache:
|
||||
directories:
|
||||
- ~/.glide
|
||||
|
||||
deploy:
|
||||
provider: script
|
||||
script: .travis-deploy.sh
|
||||
on:
|
||||
branch: master
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue