Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
kube-scheduler publish
Browse files Browse the repository at this point in the history
  • Loading branch information
darkowlzz committed Jan 29, 2020
1 parent bffc671 commit ee6dff2
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: go
dist: bionic
services:
- docker
go:
- 1.13.5
env:
global:
- CONTAINER_TAG=v1.17.0
script:
- docker build . -f kube-scheduler/Dockerfile -t storageos/kube-scheduler:latest
deploy:
- provider: script
script: bash publish.sh
on:
tags: true
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## kube-scheduler release branch

This branch is for automated release of kube-scheduler container images only.
To create a new release, ensure that the `CONTAINER_TAG` in .travis.yaml is the
tag for the new release and create a git tag from this branch, `kube-scheduler`.
Git tags trigger a release build in the CI. Changes to the branch only builds
the container image.

Any change related to kube-scheduler build, including k8s version upgrade,
should be done in the [Dockerfile](kube-scheduler/Dockerfile).
8 changes: 8 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -Eeuxo pipefail

docker login -u "$REGISTRY_USER" -p "$REGISTRY_KEY" "$CONTAINER_REGISTRY"
NEW_IMAGE="$CONTAINER_REGISTRY/$PID/kube-scheduler:$CONTAINER_TAG"
docker tag storageos/kube-scheduler:latest "$NEW_IMAGE"
docker push "$NEW_IMAGE"

0 comments on commit ee6dff2

Please sign in to comment.