Skip to content

Commit 38b4023

Browse files
Sergei Kuvakinlafin
authored andcommitted
chore: small changes in travis file
1 parent e9fefd8 commit 38b4023

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.travis.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,10 @@ addons:
2121
- cpio
2222
env:
2323
global:
24-
- MAJOR_VERSION=5
25-
- MINOR_VERSION=1
26-
- PATCH_VERSION=0
27-
- RELEASE_VERSION=2
28-
- VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION-$RELEASE_VERSION
29-
# Container tag version string.
30-
# Set it here to give a flexibility of the value such as "X.Y".
31-
- TAG_VER=$VERSION
24+
- RELEASE=5.1.0
25+
- BUILD=2.eln103
26+
- BUILD_NUM=$(echo $BUILD | sed 's/\..*//')
27+
- VERSION=$RELEASE-$BUILD_NUM
3228
# See qemu-user-static's RPM spec file on Fedora to check the new version.
3329
# https://src.fedoraproject.org/rpms/qemu/blob/master/f/qemu.spec
3430
- DOCKER_SERVER=docker.io
@@ -38,7 +34,7 @@ env:
3834
# Container repository
3935
- DOCKER_REPO=$DOCKER_SERVER/multiarch/qemu-user-static
4036
# - DOCKER_REPO=$DOCKER_SERVER/your_username/qemu-user-static
41-
- PACKAGE_URI="https://kojipkgs.fedoraproject.org/packages/qemu/5.1.0/2.eln103/x86_64/qemu-user-static-5.1.0-2.eln103.x86_64.rpm"
37+
- PACKAGE_URI="https://kojipkgs.fedoraproject.org/packages/qemu/$RELEASE/$BUILD/x86_64/qemu-user-static-$RELEASE-$BUILD.x86_64.rpm"
4238
- PACKAGE_FILENAME=$(basename "$PACKAGE_URI")
4339
before_script:
4440
- wget --content-disposition $PACKAGE_URI
@@ -49,7 +45,7 @@ script:
4945
if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
5046
./publish.sh -v "$VERSION" -t "$GITHUB_TOKEN" -r "$REPO"
5147
fi
52-
- ./update.sh -v "$VERSION" -t "$TAG_VER" -r "$REPO" -d "$DOCKER_REPO"
48+
- ./update.sh -v "$VERSION" -t "$VERSION" -r "$REPO" -d "$DOCKER_REPO"
5349
- docker images
5450
- ./test.sh -d "$DOCKER_REPO"
5551
after_success:

0 commit comments

Comments
 (0)