Browse Source

Fixed docker upload in travis

tempestpy_adaptions
Matthias Volk 7 years ago
parent
commit
49a6c5f4ed
  1. 8
      .travis.yml
  2. 6
      travis/generate_travis.py

8
.travis.yml

@ -292,8 +292,8 @@ jobs:
after_failure: after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \; - find build -iname '*err*.log' -type f -print -exec cat {} \;
after_success: after_success:
- docker login -u '$DOCKER_USERNAME' -p '$DOCKER_PASSWORD';
- docker tag storm mvolk/storm-debug:travis;
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
- docker commit storm mvolk/storm-debug:travis;
- docker push mvolk/storm-debug:travis; - docker push mvolk/storm-debug:travis;
- stage: Test all - stage: Test all
os: linux os: linux
@ -308,7 +308,7 @@ jobs:
after_failure: after_failure:
- find build -iname '*err*.log' -type f -print -exec cat {} \; - find build -iname '*err*.log' -type f -print -exec cat {} \;
after_success: after_success:
- docker login -u '$DOCKER_USERNAME' -p '$DOCKER_PASSWORD';
- docker tag storm mvolk/storm:travis;
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";
- docker commit storm mvolk/storm:travis;
- docker push mvolk/storm:travis; - docker push mvolk/storm:travis;

6
travis/generate_travis.py

@ -122,12 +122,12 @@ if __name__ == "__main__":
# Upload to dockerhub # Upload to dockerhub
if stage[1] == "TestAll": if stage[1] == "TestAll":
buildConfig += " after_success:\n" buildConfig += " after_success:\n"
buildConfig += " - docker login -u '$DOCKER_USERNAME' -p '$DOCKER_PASSWORD';\n"
buildConfig += ' - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD";\n'
if "Debug" in build: if "Debug" in build:
buildConfig += " - docker tag storm mvolk/storm-debug:travis;\n"
buildConfig += " - docker commit storm mvolk/storm-debug:travis;\n"
buildConfig += " - docker push mvolk/storm-debug:travis;\n" buildConfig += " - docker push mvolk/storm-debug:travis;\n"
elif "Release" in build: elif "Release" in build:
buildConfig += " - docker tag storm mvolk/storm:travis;\n"
buildConfig += " - docker commit storm mvolk/storm:travis;\n"
buildConfig += " - docker push mvolk/storm:travis;\n" buildConfig += " - docker push mvolk/storm:travis;\n"
else: else:
assert False assert False

Loading…
Cancel
Save