Skip to content

Commit

Permalink
build and push 'latest' via travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermsi1337 committed Mar 29, 2019
1 parent d7b0dca commit 0b15bea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ changelog:
dockers:
-
image_templates:
- quay.io/mittwald/kubernetes-secret-generator
- quay.io/mittwald/kubernetes-secret-generator:stable
- quay.io/mittwald/kubernetes-secret-generator:{{ .Tag }}
- quay.io/mittwald/kubernetes-secret-generator:{{ .Tag }}-{{ .Env.GO_VERSION }}
extra_files:
- util/copy_secret.go
- main.go
Expand Down
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ script:

before_deploy:
- if [[ "${TRAVIS_BRANCH}" == "master" ]] && [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then docker login -u "${DOCKER_LOGIN_NAME}" -p "${DOCKER_LOGIN_PASSWORD}" "${DOCKER_LOGIN_URL}"; fi
- export FULL_IMAGE="${DOCKER_LOGIN_URL}/mittwald/kubernetes-secret-generator"
deploy:
- provider: script
skip_cleanup: true
script: docker build -t "${FULL_IMAGE}:latest" && docker push "${FULL_IMAGE}:latest"
on:
tags: false
branch: master
condition: $TRAVIS_OS_NAME = linux
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash -s -- --rm-dist
Expand Down

0 comments on commit 0b15bea

Please sign in to comment.