Skip to content

Commit

Permalink
fix(rhel) fix how the RedHat version label is set (Kong#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic authored Mar 19, 2020
1 parent 83aab5b commit 26f15d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ before_script:
script:
- make test

deploy:
provider: script
script: BASE="rhel" KONG_DOCKER_TAG="kong-rhel" TAG=$TRAVIS_TAG make release-rhel
on:
tags: true
jobs:
include:
- stage: deploy
env:
- BASE=rhel
- KONG_DOCKER_TAG=kong-rhel
- TAG=$TRAVIS_TAG
script: make release-rhel
if: tag IS present
2 changes: 1 addition & 1 deletion rhel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ MAINTAINER Kong

LABEL name="Kong" \
vendor="Kong" \
version="${KONG_VERSION}" \
version="2.0.2" \
release="1" \
url="https://konghq.com" \
summary="Next-Generation API Platform for Modern Architectures" \
Expand Down
2 changes: 2 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ pushd rhel
new_sha=$(sha256sum /tmp/kong.rpm.new | cut -b1-64)

sed -i -e 's/'$old_sha'/'$new_sha'/g' build-ce.sh
sed -i -e "s/$prev_tag/$version/" Dockerfile

rm /tmp/kong.rpm.*
popd

Expand Down

0 comments on commit 26f15d3

Please sign in to comment.