Skip to content

Commit

Permalink
Upgrade docker image for changelog generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasiak committed Nov 9, 2018
1 parent 946b3c3 commit 0a9f353
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ jobs:
- docker
before_deploy:
- if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_TAG" != 'latest' ]; then
docker pull eu.gcr.io/kyma-project/changelog-generator:0.1.0;
docker pull eu.gcr.io/kyma-project/changelog-generator:0.2.0;
git tag -d latest;
PENULTIMATE=$(./scripts/from_tag.sh ${TRAVIS_TAG});
docker run --rm -v ${TRAVIS_BUILD_DIR}:/repository -w /repository -e FROM_TAG=${PENULTIMATE} -e LATEST_VERSION=${TRAVIS_TAG} -e GITHUB_AUTH=${GITHUB_TOKEN} -e CONFIG_FILE=scripts/package.json -e SKIP_REMOVING_LATEST=true eu.gcr.io/kyma-project/changelog-generator:0.1.0 sh /app/generate-release-changelog.sh;
git tag latest;
docker run --rm -v ${TRAVIS_BUILD_DIR}:/repository -w /repository -e FROM_TAG=${PENULTIMATE} -e TO_TAG=${TRAVIS_TAG} -e NEW_RELEASE_TITLE=${TRAVIS_TAG} -e GITHUB_AUTH=${GITHUB_TOKEN} -e CONFIG_FILE=scripts/package.json -e SKIP_REMOVING_LATEST=true eu.gcr.io/kyma-project/changelog-generator:0.2.0 sh /app/generate-release-changelog.sh;
./scripts/move_changelog.sh;
docker run --rm -v ${TRAVIS_BUILD_DIR}:/repository -w /repository -e LATEST_VERSION=${TRAVIS_TAG} -e GITHUB_AUTH=${GITHUB_TOKEN} -e CONFIG_FILE=scripts/package.json -e SKIP_REMOVING_LATEST=true eu.gcr.io/kyma-project/changelog-generator:0.1.0 sh /app/generate-full-changelog.sh;
docker run --rm -v ${TRAVIS_BUILD_DIR}:/repository -w /repository -e NEW_RELEASE_TITLE=${TRAVIS_TAG} -e GITHUB_AUTH=${GITHUB_TOKEN} -e CONFIG_FILE=scripts/package.json -e SKIP_REMOVING_LATEST=true eu.gcr.io/kyma-project/changelog-generator:0.2.0 sh /app/generate-full-changelog.sh;
./scripts/push.sh;
fi
- ./scripts/convert.sh
Expand Down

0 comments on commit 0a9f353

Please sign in to comment.