mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-05 17:27:51 +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
d192346039
2 changed files with 19 additions and 0 deletions
9
.travis-deploy.sh
Executable file
9
.travis-deploy.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
set -x
|
||||
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
|
||||
|
||||
if [[ -n $TRAVIS_TAG ]]; then
|
||||
make push VERSION=${TRAVIS_TAG}
|
||||
else
|
||||
make push-amd64
|
||||
fi
|
||||
10
.travis.yml
10
.travis.yml
|
|
@ -21,3 +21,13 @@ script: make verify
|
|||
cache:
|
||||
directories:
|
||||
- ~/.glide
|
||||
|
||||
sudo: required
|
||||
services:
|
||||
- docker
|
||||
|
||||
deploy:
|
||||
provider: script
|
||||
script: bash .travis-deploy.sh
|
||||
on:
|
||||
branch: master
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue