File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,10 @@ addons:
21
21
- cpio
22
22
env :
23
23
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
32
28
# See qemu-user-static's RPM spec file on Fedora to check the new version.
33
29
# https://src.fedoraproject.org/rpms/qemu/blob/master/f/qemu.spec
34
30
- DOCKER_SERVER=docker.io
38
34
# Container repository
39
35
- DOCKER_REPO=$DOCKER_SERVER/multiarch/qemu-user-static
40
36
# - 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"
42
38
- PACKAGE_FILENAME=$(basename "$PACKAGE_URI")
43
39
before_script :
44
40
- wget --content-disposition $PACKAGE_URI
@@ -49,7 +45,7 @@ script:
49
45
if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
50
46
./publish.sh -v "$VERSION" -t "$GITHUB_TOKEN" -r "$REPO"
51
47
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"
53
49
- docker images
54
50
- ./test.sh -d "$DOCKER_REPO"
55
51
after_success :
You can’t perform that action at this time.
0 commit comments